summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2017-01-22 04:07:44 +0000
committerjsing <>2017-01-22 04:07:44 +0000
commit4e41b8e085c03099d680e9806dd3eea21afb86fe (patch)
tree20d8b3369e4b8892b9e43215b28d1fe6b0e34e48 /src
parent5a672ea523eafdd9e5e73b3167e915511ad393a4 (diff)
downloadopenbsd-4e41b8e085c03099d680e9806dd3eea21afb86fe.tar.gz
openbsd-4e41b8e085c03099d680e9806dd3eea21afb86fe.tar.bz2
openbsd-4e41b8e085c03099d680e9806dd3eea21afb86fe.zip
Move recently added min_version/max_version from SSL and SSL_CTX to their
opaque structs.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl.h8
-rw-r--r--src/lib/libssl/ssl_locl.h8
2 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index e8ad9fb470..c8be3db253 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.103 2017/01/22 03:50:45 jsing Exp $ */ 1/* $OpenBSD: ssl.h,v 1.104 2017/01/22 04:07:44 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -697,9 +697,6 @@ struct ssl_ctx_internal_st;
697struct ssl_ctx_st { 697struct ssl_ctx_st {
698 const SSL_METHOD *method; 698 const SSL_METHOD *method;
699 699
700 uint16_t min_version;
701 uint16_t max_version;
702
703 STACK_OF(SSL_CIPHER) *cipher_list; 700 STACK_OF(SSL_CIPHER) *cipher_list;
704 /* same as above but sorted for lookup */ 701 /* same as above but sorted for lookup */
705 STACK_OF(SSL_CIPHER) *cipher_list_by_id; 702 STACK_OF(SSL_CIPHER) *cipher_list_by_id;
@@ -1014,9 +1011,6 @@ struct ssl_st {
1014 */ 1011 */
1015 int version; 1012 int version;
1016 1013
1017 uint16_t min_version;
1018 uint16_t max_version;
1019
1020 int type; /* SSL_ST_CONNECT or SSL_ST_ACCEPT */ 1014 int type; /* SSL_ST_CONNECT or SSL_ST_ACCEPT */
1021 1015
1022 const SSL_METHOD *method; /* SSLv3 */ 1016 const SSL_METHOD *method; /* SSLv3 */
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 50f527aad5..ab18ae1c83 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.146 2017/01/22 03:50:45 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.147 2017/01/22 04:07:44 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -377,11 +377,13 @@ typedef struct ssl_session_internal_st {
377} SSL_SESSION_INTERNAL; 377} SSL_SESSION_INTERNAL;
378 378
379typedef struct ssl_ctx_internal_st { 379typedef struct ssl_ctx_internal_st {
380 380 uint16_t min_version;
381 uint16_t max_version;
381} SSL_CTX_INTERNAL; 382} SSL_CTX_INTERNAL;
382 383
383typedef struct ssl_internal_st { 384typedef struct ssl_internal_st {
384 385 uint16_t min_version;
386 uint16_t max_version;
385} SSL_INTERNAL; 387} SSL_INTERNAL;
386 388
387typedef struct ssl3_state_internal_st { 389typedef struct ssl3_state_internal_st {