From 9467cc0206e131f51106ef0f3c4ff4769f7b4767 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 5 Feb 2015 15:49:33 +0100 Subject: [PATCH] verifystatus SSL request option support (OCSP) --- php_http_client_curl.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2