From: Michael Wallner Date: Fri, 5 Mar 2021 15:37:56 +0000 (+0100) Subject: add request option proxy_ssl.pinned_publickey X-Git-Tag: v4.1.0~19 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f8f48968364adb063b73c3ff19c8aa7bf0ff2dff;p=m6w6%2Fext-http add request option proxy_ssl.pinned_publickey --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 9ca8725..accc023 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1613,6 +1613,13 @@ static void php_http_curle_options_init(php_http_options_t *registry) if ((opt = php_http_option_register(proxy_registry, ZEND_STRL("tlsauthpass"), CURLOPT_PROXY_TLSAUTH_PASSWORD, IS_STRING))) { opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; } +# endif +# if PHP_HTTP_CURL_VERSION(7,59,0) + /* FIXME: see http://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html#AVAILABILITY */ + if ((opt = php_http_option_register(proxy_registry, ZEND_STRL("pinned_publickey"), CURLOPT_PROXY_PINNEDPUBLICKEY, IS_STRING))) { + opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; + opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_BASEDIR; + } # endif } #endif