Lines 1-6
Link Here
|
1 |
--- socket.c.orig 2013-04-23 20:00:45 UTC |
1 |
--- socket.c.orig 2018-12-30 11:43:19.042365000 -0600 |
2 |
+++ socket.c |
2 |
+++ socket.c 2018-12-30 12:46:39.062201000 -0600 |
3 |
@@ -907,14 +907,19 @@ int SSLOpen(int sock, char *mycert, char |
3 |
@@ -910,7 +910,7 @@ |
4 |
_ssl_context[sock] = NULL; |
4 |
_ssl_context[sock] = NULL; |
5 |
if(myproto) { |
5 |
if(myproto) { |
6 |
if(!strcasecmp("ssl2",myproto)) { |
6 |
if(!strcasecmp("ssl2",myproto)) { |
Lines 8-24
Link Here
|
8 |
+#if (HAVE_DECL_SSLV2_CLIENT_METHOD + 0 > 0) && !defined(OPENSSL_NO_SSL2) |
8 |
+#if (HAVE_DECL_SSLV2_CLIENT_METHOD + 0 > 0) && !defined(OPENSSL_NO_SSL2) |
9 |
_ctx[sock] = SSL_CTX_new(SSLv2_client_method()); |
9 |
_ctx[sock] = SSL_CTX_new(SSLv2_client_method()); |
10 |
#else |
10 |
#else |
11 |
- report(stderr, GT_("Your operating system does not support SSLv2.\n")); |
11 |
report(stderr, GT_("Your OpenSSL version does not support SSLv2.\n")); |
12 |
+ report(stderr, GT_("Your OpenSSL version does not support SSLv2.\n")); |
12 |
@@ -918,7 +918,7 @@ |
13 |
return -1; |
|
|
14 |
#endif |
13 |
#endif |
|
|
14 |
avoid_ssl_versions &= ~SSL_OP_NO_SSLv2; |
15 |
} else if(!strcasecmp("ssl3",myproto)) { |
15 |
} else if(!strcasecmp("ssl3",myproto)) { |
16 |
+#ifndef OPENSSL_NO_SSL3_METHOD |
16 |
-#if HAVE_DECL_SSLV3_CLIENT_METHOD + 0 > 0 |
|
|
17 |
+#if (HAVE_DECL_SSLV3_CLIENT_METHOD + 0 > 0) && !defined(OPENSSL_NO_SSL3_METHOD) |
17 |
_ctx[sock] = SSL_CTX_new(SSLv3_client_method()); |
18 |
_ctx[sock] = SSL_CTX_new(SSLv3_client_method()); |
18 |
+#else |
19 |
#else |
19 |
+ report(stderr, GT_("Your OpenSSL version does not support SSLv3.\n")); |
20 |
report(stderr, GT_("Your OpenSSL version does not support SSLv3.\n")); |
20 |
+ return -1; |
|
|
21 |
+#endif |
22 |
} else if(!strcasecmp("tls1",myproto)) { |
23 |
_ctx[sock] = SSL_CTX_new(TLSv1_client_method()); |
24 |
} else if (!strcasecmp("ssl23",myproto)) { |