From a4d91585094d49fe18ce9d7839cde50aa17a2bb3 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Tue, 23 Dec 2014 00:16:07 +0000 Subject: 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 --- lib/vtls/openssl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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; -- cgit v1.2.3