@@ -21,64 +21,64 @@ automatically negotiate the highest supported protocol.
2121For SSLv3 methods we're returning a NULL pointer as there are no
2222more supported methods for the SSL protocol.
2323---
24- ssl/methods.c | 18 +++++++++++++++ ---
25- 1 file changed, 15 insertions(+), 3 deletions(-)
24+ ssl/methods.c | 18 +++------------ ---
25+ 1 file changed, 3 insertions(+), 15 deletions(-)
2626
2727diff --git a/ssl/methods.c b/ssl/methods.c
28- index c846143277..a7ae074bfd 100644
28+ index 0117254..0709883 100644
2929--- a/ssl/methods.c
3030+++ b/ssl/methods.c
31- @@ -215,17 +215,29 @@ const SSL_METHOD *TLSv1_client_method(void)
32- # ifndef OPENSSL_NO_SSL3_METHOD
31+ @@ -228,29 +228,17 @@ const SSL_METHOD *TLSv1_client_method(void)
32+ #ifndef OPENSSL_NO_SSL3_METHOD
3333 const SSL_METHOD *SSLv3_method(void)
3434 {
35- + # ifdef OPENSSL_NO_SSL3
36- + return NULL;
37- + # else
35+ - # ifdef OPENSSL_NO_SSL3
36+ - return NULL;
37+ - # else
3838 return sslv3_method();
39- + # endif
39+ - # endif
4040 }
4141
4242 const SSL_METHOD *SSLv3_server_method(void)
4343 {
44- + # ifdef OPENSSL_NO_SSL3
45- + return NULL;
46- + # else
44+ - # ifdef OPENSSL_NO_SSL3
45+ - return NULL;
46+ - # else
4747 return sslv3_server_method();
48- + # endif
48+ - # endif
4949 }
5050
5151 const SSL_METHOD *SSLv3_client_method(void)
5252 {
53- + # ifdef OPENSSL_NO_SSL3
54- + return NULL;
55- + # else
53+ - # ifdef OPENSSL_NO_SSL3
54+ - return NULL;
55+ - # else
5656 return sslv3_client_method();
57- + # endif
57+ - # endif
5858 }
59- # endif
59+ #endif
6060
61- @@ -249 ,17 +261 ,17 @@ const SSL_METHOD *DTLSv1_2_client_method(void)
62- # ifndef OPENSSL_NO_DTLS1_METHOD
61+ @@ -274 ,17 +262 ,17 @@ const SSL_METHOD *DTLSv1_2_client_method(void)
62+ #ifndef OPENSSL_NO_DTLS1_METHOD
6363 const SSL_METHOD *DTLSv1_method(void)
6464 {
65- - return dtlsv1_method ();
66- + return DTLS_method ();
65+ - return DTLS_method ();
66+ + return dtlsv1_method ();
6767 }
6868
6969 const SSL_METHOD *DTLSv1_server_method(void)
7070 {
71- - return dtlsv1_server_method ();
72- + return DTLS_server_method ();
71+ - return DTLS_server_method ();
72+ + return dtlsv1_server_method ();
7373 }
7474
7575 const SSL_METHOD *DTLSv1_client_method(void)
7676 {
77- - return dtlsv1_client_method ();
78- + return DTLS_client_method ();
77+ - return DTLS_server_method ();
78+ + return dtlsv1_client_method ();
7979 }
80- # endif
80+ #endif
8181
8282- -
83- 2.25.1
83+ 2.45.4
8484
0 commit comments