mirror of
https://github.com/moparisthebest/curl
synced 2024-11-17 15:05:02 -05:00
openssl: fix compiler warning with LibreSSL
It was already fixed for BoringSSL in commita0f8fccb1e
. LibreSSL has had the second argument to SSL_CTX_set_min_proto_version as uint16_t ever since the function was added in [0]. [0]56f107201b
Closes https://github.com/curl/curl/pull/4397
This commit is contained in:
parent
f8a2058533
commit
367e4b3c4d
@ -2165,7 +2165,7 @@ set_ssl_version_min_max(SSL_CTX *ctx, struct connectdata *conn)
|
|||||||
long curl_ssl_version_max;
|
long curl_ssl_version_max;
|
||||||
|
|
||||||
/* convert cURL min SSL version option to OpenSSL constant */
|
/* convert cURL min SSL version option to OpenSSL constant */
|
||||||
#ifdef OPENSSL_IS_BORINGSSL
|
#if defined(OPENSSL_IS_BORINGSSL) || defined(LIBRESSL_VERSION_NUMBER)
|
||||||
uint16_t ossl_ssl_version_min = 0;
|
uint16_t ossl_ssl_version_min = 0;
|
||||||
uint16_t ossl_ssl_version_max = 0;
|
uint16_t ossl_ssl_version_max = 0;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user