mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +08:00
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
This commit is contained in:
parent
8627618540
commit
a4d9158509
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user