aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-23 00:16:07 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-23 00:16:07 +0000
commita4d91585094d49fe18ce9d7839cde50aa17a2bb3 (patch)
tree6d04467b8e399b5c3d7f15dac6e1b96af38ae860 /lib
parent8627618540f564a16334e30968b14134c81d3ef5 (diff)
openssl.c Fix for compilation errors with older versions of OpenSSL
openssl.c:1408: error: 'TLS1_1_VERSION' undeclared openssl.c:1411: error: 'TLS1_2_VERSION' undeclared
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 4df5a7a2e..638c6079e 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -1405,12 +1405,16 @@ static void ssl_tls_trace(int direction, int ssl_ver, int content_type,
case TLS1_VERSION:
verstr = "TLSv1.0";
break;
+#ifdef TLS1_1_VERSION
case TLS1_1_VERSION:
verstr = "TLSv1.1";
break;
+#endif
+#ifdef TLS1_2_VERSION
case TLS1_2_VERSION:
verstr = "TLSv1.2";
break;
+#endif
default:
snprintf(unknown, sizeof(unknown), "(%x)", ssl_ver);
verstr = unknown;