com php-src: Adds new curl option CURLOPT_SSL_VERIFYSTATUS to enable OCSP verification: ext/curl/interface. c
| From: | Anatol Belski | Date: | Sat, 16 Apr 2016 16:30:19 +0000 |
| Subject: | com php-src: Adds new curl option CURLOPT_SSL_VERIFYSTATUS to enable OCSP verification: ext/curl/interface. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91742@lists.php.net to get a copy of this message | ||
Commit: 02766d0180e901d4fc6dc7a06fb09867dec40c1e
Author: Dominic Luechinger <dol@cyon.ch> Wed, 13 Apr 2016 22:14:43 +0200
Committer: Anatol Belski <ab@php.net> Sat, 16 Apr 2016 18:30:19 +0200
Parents: fd6f7b83411819361d89fa53247e6f1cb2683cd4
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=02766d0180e901d4fc6dc7a06fb09867dec40c1e
Log:
Adds new curl option CURLOPT_SSL_VERIFYSTATUS to enable OCSP verification
Changed paths:
M ext/curl/interface.c
Diff:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index b157175..51d4485 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: