From e4094d44990e46a0adcc2138eca4053156cd2201 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 5 Mar 2021 16:42:35 +0100 Subject: [PATCH] add CURLOPT_{,PROXY}_TLS13_CIPHERS --- src/php_http_client_curl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.30.2