From: Michael Wallner Date: Fri, 5 Mar 2021 15:42:35 +0000 (+0100) Subject: add CURLOPT_{,PROXY}_TLS13_CIPHERS X-Git-Tag: v4.1.0~18 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e4094d44990e46a0adcc2138eca4053156cd2201;p=m6w6%2Fext-http add CURLOPT_{,PROXY}_TLS13_CIPHERS --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index accc023..b4f2d04 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1542,6 +1542,11 @@ static void php_http_curle_options_init(php_http_options_t *registry) #endif #if PHP_HTTP_CURL_VERSION(7,42,0) && (PHP_HTTP_HAVE_LIBCURL_NSS || PHP_HTTP_HAVE_LIBCURL_SECURETRANSPORT) php_http_option_register(ssl_registry, ZEND_STRL("falsestart"), CURLOPT_SSL_FALSESTART, _IS_BOOL); +#endif +#if PHP_HTTP_CURL_VERSION(7,61,0) + if ((opt = php_http_option_register(ssl_registry, ZEND_STRL("tls13_ciphers"), CURLOPT_TLS13_CIPHERS, IS_STRING))) { + opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; + } #endif } @@ -1620,6 +1625,11 @@ static void php_http_curle_options_init(php_http_options_t *registry) opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_BASEDIR; } +# endif +# if PHP_HTTP_CURL_VERSION(7,61,0) + if ((opt = php_http_option_register(proxy_registry, ZEND_STRL("tls13_ciphers"), CURLOPT_PROXY_TLS13_CIPHERS, IS_STRING))) { + opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; + } # endif } #endif