blob: c1b67184db8c6a76f3bc1008fd7ce983812fc3fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- src/network/openssl.c.orig
+++ src/network/openssl.c
@@ -106,10 +106,12 @@
if (!strcmp(tls_version, "1.0"))
return TLSv1_method();
+#if OPENSSL_VERSION_NUMBER >= 0x1000100fL
if (!strcmp(tls_version, "1.1"))
return TLSv1_1_method();
if (!strcmp(tls_version, "1.2"))
return TLSv1_2_method();
+#endif
LOG_ERROR("Unable to recognize tls_version.");
return 0;
|