mirror of
https://github.com/curl/curl.git
synced 2026-08-20 00:23:50 +03: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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue