View | Details | Raw Unified | Return to bug 198399
Collapse All | Expand All

(-)mail/courier/files/patch-tcpd_libcouriertls.c (+18 lines)
Line 0 Link Here
1
--- tcpd/libcouriertls.c.orig	2009-11-21 21:07:32.000000000 +0100
2
+++ tcpd/libcouriertls.c	2015-03-07 22:46:47.521076321 +0100
3
@@ -551,9 +551,13 @@
4
 	if (!protocol || !*protocol)
5
 		protocol="SSL23";
6
 
7
-	ctx=SSL_CTX_new(protocol && strcmp(protocol, "SSL2") == 0
8
-							? SSLv2_method():
9
+	ctx=SSL_CTX_new(
10
+#ifndef OPENSSL_NO_SSL2
11
+		protocol && strcmp(protocol, "SSL2") == 0 ? SSLv2_method():
12
+#endif
13
+#ifndef OPENSSL_NO_SSL3
14
 		protocol && strcmp(protocol, "SSL3") == 0 ? SSLv3_method():
15
+#endif
16
 		protocol && strcmp(protocol, "SSL23") == 0 ? SSLv23_method():
17
 		TLSv1_method());
18
 

Return to bug 198399