From: Michael Wallner Date: Mon, 1 Mar 2021 16:29:54 +0000 (+0100) Subject: add CURL_SSLVERSION_TLSv1_3 X-Git-Tag: v4.1.0~27 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=39866242177fa85594075c2590487cdc75f30399;p=m6w6%2Fext-http add CURL_SSLVERSION_TLSv1_3 --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index c3e21b6..459b78d 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -2620,6 +2620,9 @@ PHP_MINIT_FUNCTION(http_client_curl) REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "SSL_VERSION_TLSv1_0", CURL_SSLVERSION_TLSv1_0, CONST_CS|CONST_PERSISTENT); REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "SSL_VERSION_TLSv1_1", CURL_SSLVERSION_TLSv1_1, CONST_CS|CONST_PERSISTENT); REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "SSL_VERSION_TLSv1_2", CURL_SSLVERSION_TLSv1_2, CONST_CS|CONST_PERSISTENT); +#endif +#if PHP_HTTP_CURL_VERSION(7,52,0) + REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "SSL_VERSION_TLSv1_3", CURL_SSLVERSION_TLSv1_3, CONST_CS|CONST_PERSISTENT); #endif REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "SSL_VERSION_SSLv2", CURL_SSLVERSION_SSLv2, CONST_CS|CONST_PERSISTENT); REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "SSL_VERSION_SSLv3", CURL_SSLVERSION_SSLv3, CONST_CS|CONST_PERSISTENT);