summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_srvr.c
diff options
context:
space:
mode:
authorjsing <>2017-01-21 06:50:02 +0000
committerjsing <>2017-01-21 06:50:02 +0000
commit85977a5fc077a3570226e3ec00bf221c6c1951cd (patch)
tree3e7467326a7b90d124dd0a59f133b50f6c539983 /src/lib/libssl/t1_srvr.c
parent6411419e3be11551c026699bf2afb5e17fdd57c4 (diff)
downloadopenbsd-85977a5fc077a3570226e3ec00bf221c6c1951cd.tar.gz
openbsd-85977a5fc077a3570226e3ec00bf221c6c1951cd.tar.bz2
openbsd-85977a5fc077a3570226e3ec00bf221c6c1951cd.zip
Specify minimum and maximum protocol version for each method. This is
currently unused, but will be in the near future. ok beck@
Diffstat (limited to 'src/lib/libssl/t1_srvr.c')
-rw-r--r--src/lib/libssl/t1_srvr.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libssl/t1_srvr.c b/src/lib/libssl/t1_srvr.c
index 74c73a4337..84ed66c7ed 100644
--- a/src/lib/libssl/t1_srvr.c
+++ b/src/lib/libssl/t1_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_srvr.c,v 1.20 2016/11/04 18:30:21 guenther Exp $ */ 1/* $OpenBSD: t1_srvr.c,v 1.21 2017/01/21 06:50:02 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 *
@@ -69,6 +69,8 @@ static const SSL_METHOD *tls1_get_server_method(int ver);
69 69
70static const SSL_METHOD TLS_server_method_data = { 70static const SSL_METHOD TLS_server_method_data = {
71 .version = TLS1_2_VERSION, 71 .version = TLS1_2_VERSION,
72 .min_version = TLS1_VERSION,
73 .max_version = TLS1_2_VERSION,
72 .ssl_new = tls1_new, 74 .ssl_new = tls1_new,
73 .ssl_clear = tls1_clear, 75 .ssl_clear = tls1_clear,
74 .ssl_free = tls1_free, 76 .ssl_free = tls1_free,
@@ -101,6 +103,8 @@ static const SSL_METHOD TLS_server_method_data = {
101 103
102static const SSL_METHOD TLSv1_server_method_data = { 104static const SSL_METHOD TLSv1_server_method_data = {
103 .version = TLS1_VERSION, 105 .version = TLS1_VERSION,
106 .min_version = TLS1_VERSION,
107 .max_version = TLS1_VERSION,
104 .ssl_new = tls1_new, 108 .ssl_new = tls1_new,
105 .ssl_clear = tls1_clear, 109 .ssl_clear = tls1_clear,
106 .ssl_free = tls1_free, 110 .ssl_free = tls1_free,
@@ -133,6 +137,8 @@ static const SSL_METHOD TLSv1_server_method_data = {
133 137
134static const SSL_METHOD TLSv1_1_server_method_data = { 138static const SSL_METHOD TLSv1_1_server_method_data = {
135 .version = TLS1_1_VERSION, 139 .version = TLS1_1_VERSION,
140 .min_version = TLS1_1_VERSION,
141 .max_version = TLS1_1_VERSION,
136 .ssl_new = tls1_new, 142 .ssl_new = tls1_new,
137 .ssl_clear = tls1_clear, 143 .ssl_clear = tls1_clear,
138 .ssl_free = tls1_free, 144 .ssl_free = tls1_free,
@@ -165,6 +171,8 @@ static const SSL_METHOD TLSv1_1_server_method_data = {
165 171
166static const SSL_METHOD TLSv1_2_server_method_data = { 172static const SSL_METHOD TLSv1_2_server_method_data = {
167 .version = TLS1_2_VERSION, 173 .version = TLS1_2_VERSION,
174 .min_version = TLS1_2_VERSION,
175 .max_version = TLS1_2_VERSION,
168 .ssl_new = tls1_new, 176 .ssl_new = tls1_new,
169 .ssl_clear = tls1_clear, 177 .ssl_clear = tls1_clear,
170 .ssl_free = tls1_free, 178 .ssl_free = tls1_free,