summaryrefslogtreecommitdiffstats
path: root/mail/nail/patches/100-handle-openssl-without-sslv2.patch
blob: 4352fe871a4832e726d8b69d7b2bc5587caefbfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/openssl.c
+++ b/openssl.c
@@ -216,9 +216,12 @@ ssl_select_method(const char *uhp)
 
 	cp = ssl_method_string(uhp);
 	if (cp != NULL) {
+#ifndef OPENSSL_NO_SSL2
 		if (equal(cp, "ssl2"))
 			method = SSLv2_client_method();
-		else if (equal(cp, "ssl3"))
+		else
+#endif
+		if (equal(cp, "ssl3"))
 			method = SSLv3_client_method();
 		else if (equal(cp, "tls1"))
 			method = TLSv1_client_method();