summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_srvr.c
diff options
context:
space:
mode:
authorjsing <>2015-02-06 08:30:23 +0000
committerjsing <>2015-02-06 08:30:23 +0000
commit04f5c3dd2b47368b601e30fea9b329d7e90e5233 (patch)
tree3d9e90980fb8319df5be140e688f4782d92d6aa1 /src/lib/libssl/t1_srvr.c
parentd9fc2c3367b4d3680c1f1fa9d18253a4ba0f42cc (diff)
downloadopenbsd-04f5c3dd2b47368b601e30fea9b329d7e90e5233.tar.gz
openbsd-04f5c3dd2b47368b601e30fea9b329d7e90e5233.tar.bz2
openbsd-04f5c3dd2b47368b601e30fea9b329d7e90e5233.zip
Bring back the horrible API that is get_cipher_by_char/put_cipher_by_char.
This API was intended to be an internal only, however like many things in OpenSSL, it is exposed externally and parts of the software ecosystem are now using it since there is no real alternative within the public API. ok doug@, tedu@ and reluctantly miod@
Diffstat (limited to 'src/lib/libssl/t1_srvr.c')
-rw-r--r--src/lib/libssl/t1_srvr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/t1_srvr.c b/src/lib/libssl/t1_srvr.c
index 4dedc727e2..3c6ac541f8 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.17 2014/12/14 15:30:50 jsing Exp $ */ 1/* $OpenBSD: t1_srvr.c,v 1.18 2015/02/06 08:30:23 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 *
@@ -86,6 +86,8 @@ const SSL_METHOD TLSv1_server_method_data = {
86 .ssl_dispatch_alert = ssl3_dispatch_alert, 86 .ssl_dispatch_alert = ssl3_dispatch_alert,
87 .ssl_ctrl = ssl3_ctrl, 87 .ssl_ctrl = ssl3_ctrl,
88 .ssl_ctx_ctrl = ssl3_ctx_ctrl, 88 .ssl_ctx_ctrl = ssl3_ctx_ctrl,
89 .get_cipher_by_char = ssl3_get_cipher_by_char,
90 .put_cipher_by_char = ssl3_put_cipher_by_char,
89 .ssl_pending = ssl3_pending, 91 .ssl_pending = ssl3_pending,
90 .num_ciphers = ssl3_num_ciphers, 92 .num_ciphers = ssl3_num_ciphers,
91 .get_cipher = ssl3_get_cipher, 93 .get_cipher = ssl3_get_cipher,
@@ -116,6 +118,8 @@ const SSL_METHOD TLSv1_1_server_method_data = {
116 .ssl_dispatch_alert = ssl3_dispatch_alert, 118 .ssl_dispatch_alert = ssl3_dispatch_alert,
117 .ssl_ctrl = ssl3_ctrl, 119 .ssl_ctrl = ssl3_ctrl,
118 .ssl_ctx_ctrl = ssl3_ctx_ctrl, 120 .ssl_ctx_ctrl = ssl3_ctx_ctrl,
121 .get_cipher_by_char = ssl3_get_cipher_by_char,
122 .put_cipher_by_char = ssl3_put_cipher_by_char,
119 .ssl_pending = ssl3_pending, 123 .ssl_pending = ssl3_pending,
120 .num_ciphers = ssl3_num_ciphers, 124 .num_ciphers = ssl3_num_ciphers,
121 .get_cipher = ssl3_get_cipher, 125 .get_cipher = ssl3_get_cipher,
@@ -146,6 +150,8 @@ const SSL_METHOD TLSv1_2_server_method_data = {
146 .ssl_dispatch_alert = ssl3_dispatch_alert, 150 .ssl_dispatch_alert = ssl3_dispatch_alert,
147 .ssl_ctrl = ssl3_ctrl, 151 .ssl_ctrl = ssl3_ctrl,
148 .ssl_ctx_ctrl = ssl3_ctx_ctrl, 152 .ssl_ctx_ctrl = ssl3_ctx_ctrl,
153 .get_cipher_by_char = ssl3_get_cipher_by_char,
154 .put_cipher_by_char = ssl3_put_cipher_by_char,
149 .ssl_pending = ssl3_pending, 155 .ssl_pending = ssl3_pending,
150 .num_ciphers = ssl3_num_ciphers, 156 .num_ciphers = ssl3_num_ciphers,
151 .get_cipher = ssl3_get_cipher, 157 .get_cipher = ssl3_get_cipher,