diff options
Diffstat (limited to 'lib/libssl/src/ssl/s23_meth.c')
-rw-r--r-- | lib/libssl/src/ssl/s23_meth.c | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/lib/libssl/src/ssl/s23_meth.c b/lib/libssl/src/ssl/s23_meth.c index acc8315b911..dfccf1150d8 100644 --- a/lib/libssl/src/ssl/s23_meth.c +++ b/lib/libssl/src/ssl/s23_meth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s23_meth.c,v 1.20 2015/08/27 06:21:15 doug Exp $ */ +/* $OpenBSD: s23_meth.c,v 1.21 2015/08/29 17:15:52 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -63,7 +63,6 @@ #include "ssl_locl.h" static const SSL_METHOD *ssl23_get_method(int ver); -static const SSL_METHOD *tls_any_get_method(int ver); const SSL_METHOD SSLv23_method_data = { .version = TLS1_2_VERSION, @@ -115,49 +114,8 @@ ssl23_get_method(int ver) return (NULL); } -const SSL_METHOD TLS_method_data = { - .version = TLS1_2_VERSION, - .ssl_new = tls1_new, - .ssl_clear = tls1_clear, - .ssl_free = tls1_free, - .ssl_accept = tls_any_accept, - .ssl_connect = tls_any_connect, - .ssl_read = ssl23_read, - .ssl_peek = ssl23_peek, - .ssl_write = ssl23_write, - .ssl_shutdown = ssl_undefined_function, - .ssl_renegotiate = ssl_undefined_function, - .ssl_renegotiate_check = ssl_ok, - .ssl_get_message = ssl3_get_message, - .ssl_read_bytes = ssl3_read_bytes, - .ssl_write_bytes = ssl3_write_bytes, - .ssl_dispatch_alert = ssl3_dispatch_alert, - .ssl_ctrl = ssl3_ctrl, - .ssl_ctx_ctrl = ssl3_ctx_ctrl, - .get_cipher_by_char = ssl3_get_cipher_by_char, - .put_cipher_by_char = ssl3_put_cipher_by_char, - .ssl_pending = ssl_undefined_const_function, - .num_ciphers = ssl3_num_ciphers, - .get_cipher = ssl3_get_cipher, - .get_ssl_method = tls_any_get_method, - .get_timeout = ssl23_default_timeout, - .ssl3_enc = &ssl3_undef_enc_method, - .ssl_version = ssl_undefined_void_function, - .ssl_callback_ctrl = ssl3_callback_ctrl, - .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl, -}; - const SSL_METHOD * TLS_method(void) { - return &TLS_method_data; -} - -static const SSL_METHOD * -tls_any_get_method(int ver) -{ - if (ver == SSL3_VERSION) - return (NULL); - else - return ssl23_get_method(ver); + return &SSLv23_method_data; } |