summaryrefslogtreecommitdiff
path: root/lib/libssl/ssl.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2016-12-21 16:51:11 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2016-12-21 16:51:11 +0000
commit846a79358c6da44961762a7d62390d66465d9454 (patch)
tree278fbe3b2af3241a7600a665c8a0f15f8582d506 /lib/libssl/ssl.h
parenteddce5bd7db41e4fad671b4dafb7ea75781328b1 (diff)
Add minimum and maximum version fields to SSL, SSL_CTX and SSL_METHOD
for future work. Discussed with beck@
Diffstat (limited to 'lib/libssl/ssl.h')
-rw-r--r--lib/libssl/ssl.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h
index b9f772d4842..d8c25cac429 100644
--- a/lib/libssl/ssl.h
+++ b/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.h,v 1.100 2016/11/04 17:58:19 guenther Exp $ */
+/* $OpenBSD: ssl.h,v 1.101 2016/12/21 16:51:10 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -397,6 +397,8 @@ struct ssl_cipher_st {
/* Used to hold functions for SSLv3/TLSv1 functions */
struct ssl_method_st {
int version;
+ uint16_t min_version;
+ uint16_t max_version;
int (*ssl_new)(SSL *s);
void (*ssl_clear)(SSL *s);
void (*ssl_free)(SSL *s);
@@ -688,6 +690,9 @@ struct lhash_st_SSL_SESSION {
struct ssl_ctx_st {
const SSL_METHOD *method;
+ uint16_t min_version;
+ uint16_t max_version;
+
STACK_OF(SSL_CIPHER) *cipher_list;
/* same as above but sorted for lookup */
STACK_OF(SSL_CIPHER) *cipher_list_by_id;
@@ -998,6 +1003,10 @@ struct ssl_st {
* (one of SSL2_VERSION, SSL3_VERSION, TLS1_VERSION, DTLS1_VERSION)
*/
int version;
+
+ uint16_t min_version;
+ uint16_t max_version;
+
int type; /* SSL_ST_CONNECT or SSL_ST_ACCEPT */
const SSL_METHOD *method; /* SSLv3 */