|
Lines 1-19
Link Here
|
| 1 |
--- src/LibsslTLSContext.cc.orig 2015-02-23 14:34:01 UTC |
1 |
--- src/LibsslTLSContext.cc.orig 2016-02-15 15:36:34 UTC |
| 2 |
+++ src/LibsslTLSContext.cc |
2 |
+++ src/LibsslTLSContext.cc |
| 3 |
@@ -103,14 +103,20 @@ OpenSSLTLSContext::OpenSSLTLSContext(TLS |
3 |
@@ -112,14 +112,20 @@ OpenSSLTLSContext::OpenSSLTLSContext(TLS |
| 4 |
|
4 |
|
| 5 |
long ver_opts = 0; |
5 |
long ver_opts = 0; |
| 6 |
switch(minVer) { |
6 |
switch (minVer) { |
| 7 |
+#ifdef SSL_OP_NO_TLSv1_1 |
7 |
+#ifdef SSL_OP_NO_TLSv1_1 |
| 8 |
case TLS_PROTO_TLS12: |
8 |
case TLS_PROTO_TLS12: |
| 9 |
ver_opts |= SSL_OP_NO_TLSv1_1; |
9 |
ver_opts |= SSL_OP_NO_TLSv1_1; |
| 10 |
+#endif // SSL_OP_NO_TLSv1_1 |
10 |
+#endif // SSL_OP_NO_TLSv1_1 |
| 11 |
// fall through |
11 |
// fall through |
| 12 |
+#ifdef SSL_OP_NO_TLSv1 |
12 |
+#ifdef SSL_OP_NO_TLSv1 |
| 13 |
case TLS_PROTO_TLS11: |
13 |
case TLS_PROTO_TLS11: |
| 14 |
ver_opts |= SSL_OP_NO_TLSv1; |
14 |
ver_opts |= SSL_OP_NO_TLSv1; |
| 15 |
+#endif // SSL_OP_NO_TLSv1 |
15 |
+#endif // SSL_OP_NO_TLSv1 |
| 16 |
// fall through |
16 |
// fall through |
| 17 |
+#ifdef SSL_OP_NO_SSLv3 |
17 |
+#ifdef SSL_OP_NO_SSLv3 |
| 18 |
case TLS_PROTO_TLS10: |
18 |
case TLS_PROTO_TLS10: |
| 19 |
ver_opts |= SSL_OP_NO_SSLv3; |
19 |
ver_opts |= SSL_OP_NO_SSLv3; |