From: Michael Wallner Date: Mon, 8 Mar 2021 13:15:02 +0000 (+0100) Subject: add CURLOPT_PROXY_ISSUERCERT X-Git-Tag: v4.1.0~9 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=fe0f7e09b2762361220706e5a1aad1b7d5c1638d add CURLOPT_PROXY_ISSUERCERT --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index e779ff5..bd6dae5 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1621,6 +1621,12 @@ static void php_http_curle_options_init(php_http_options_t *registry) opt->setter = php_http_curle_option_set_ssl_verifyhost; } php_http_option_register(proxy_registry, ZEND_STRL("cipher_list"), CURLOPT_PROXY_SSL_CIPHER_LIST, IS_STRING); +# if PHP_HTTP_CURL_VERSION(7,71,0) + if ((opt = php_http_option_register(proxy_registry, ZEND_STRL("issuercert"), CURLOPT_PROXY_ISSUERCERT, IS_STRING))) { + opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; + opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_BASEDIR; + } +# endif # if PHP_HTTP_HAVE_LIBCURL_OPENSSL if ((opt = php_http_option_register(proxy_registry, ZEND_STRL("crlfile"), CURLOPT_PROXY_CRLFILE, IS_STRING))) { opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN;