From 02766d0180e901d4fc6dc7a06fb09867dec40c1e Mon Sep 17 00:00:00 2001 From: Dominic Luechinger Date: Wed, 13 Apr 2016 22:14:43 +0200 Subject: [PATCH] Adds new curl option CURLOPT_SSL_VERIFYSTATUS to enable OCSP verification --- ext/curl/interface.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index b157175c3e..51d4485773 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -719,6 +719,9 @@ PHP_MINIT_FUNCTION(curl) REGISTER_CURL_CONSTANT(CURLOPT_SSL_CIPHER_LIST); REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYHOST); REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYPEER); +#if LIBCURL_VERSION_NUM >= 0x072900 /* 7.41.0 */ + REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYSTATUS); +#endif REGISTER_CURL_CONSTANT(CURLOPT_STDERR); REGISTER_CURL_CONSTANT(CURLOPT_TELNETOPTIONS); REGISTER_CURL_CONSTANT(CURLOPT_TIMECONDITION); @@ -2071,6 +2074,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{ case CURLOPT_RESUME_FROM: case CURLOPT_SSLVERSION: case CURLOPT_SSL_VERIFYPEER: +#if LIBCURL_VERSION_NUM >= 0x072900 /* 7.41.0 */ + case CURLOPT_SSL_VERIFYSTATUS: +#endif case CURLOPT_TIMECONDITION: case CURLOPT_TIMEOUT: case CURLOPT_TIMEVALUE: -- 2.40.0