summaryrefslogtreecommitdiffstats
path: root/0201-curl-7.29.0-openssl.patch
blob: 984d916e26d0bff2b97be6bafa02c7fc009d7230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- ./lib/ssluse.c.old	2014-12-20 08:10:34.590020955 +0100
+++ ./lib/ssluse.c	2014-12-20 08:12:24.143382067 +0100
@@ -1524,20 +1524,28 @@
   case CURL_SSLVERSION_TLSv1_0:
     ctx_options |= SSL_OP_NO_SSLv2;
     ctx_options |= SSL_OP_NO_SSLv3;
+#ifdef SSL_OP_NO_TLSv1_1
     ctx_options |= SSL_OP_NO_TLSv1_1;
+#endif
+#ifdef SSL_OP_NO_TLSv1_2
     ctx_options |= SSL_OP_NO_TLSv1_2;
+#endif
     break;
   case CURL_SSLVERSION_TLSv1_1:
     ctx_options |= SSL_OP_NO_SSLv2;
     ctx_options |= SSL_OP_NO_SSLv3;
     ctx_options |= SSL_OP_NO_TLSv1;
+#ifdef SSL_OP_NO_TLSv1_2
     ctx_options |= SSL_OP_NO_TLSv1_2;
+#endif
     break;
   case CURL_SSLVERSION_TLSv1_2:
     ctx_options |= SSL_OP_NO_SSLv2;
     ctx_options |= SSL_OP_NO_SSLv3;
     ctx_options |= SSL_OP_NO_TLSv1;
+#ifdef SSL_OP_NO_TLSv1_1
     ctx_options |= SSL_OP_NO_TLSv1_1;
+#endif
     break;
   }