]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl.c Fix for compilation errors with older versions of OpenSSL
authorSteve Holme <steve_holme@hotmail.com>
Tue, 23 Dec 2014 00:16:07 +0000 (00:16 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 23 Dec 2014 00:16:07 +0000 (00:16 +0000)
openssl.c:1408: error: 'TLS1_1_VERSION' undeclared
openssl.c:1411: error: 'TLS1_2_VERSION' undeclared

lib/vtls/openssl.c

index 4df5a7a2eb9c4d3447aff94bede01adfd9132350..638c6079e7bbfdc75fb5daf916b2702ee47a1a47 100644 (file)
@@ -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;