From: Michael Wallner Date: Thu, 5 Feb 2015 14:49:33 +0000 (+0100) Subject: verifystatus SSL request option support (OCSP) X-Git-Tag: RELEASE_2_3_0_RC1~57 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=9467cc0206e131f51106ef0f3c4ff4769f7b4767;p=m6w6%2Fext-http verifystatus SSL request option support (OCSP) --- diff --git a/php_http_client_curl.c b/php_http_client_curl.c index cf84772..501681d 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -1426,6 +1426,9 @@ static void php_http_curle_options_init(php_http_options_t *registry TSRMLS_DC) ZVAL_BOOL(&opt->defval, 1); opt->setter = php_http_curle_option_set_ssl_verifyhost; } +#if PHP_HTTP_CURL_VERSION(7,41,0) + php_http_option_register(registry, ZEND_STRL("verifystatus"), CURLOPT_SSL_VERIFYSTATUS, IS_BOOL); +#endif php_http_option_register(registry, ZEND_STRL("cipher_list"), CURLOPT_SSL_CIPHER_LIST, IS_STRING); if ((opt = php_http_option_register(registry, ZEND_STRL("cainfo"), CURLOPT_CAINFO, IS_STRING))) { opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN;