Skip to content

Commit 02766d0

Browse files
Dominic Luechingerweltling
Dominic Luechinger
authored andcommitted
Adds new curl option CURLOPT_SSL_VERIFYSTATUS to enable OCSP verification
1 parent fd6f7b8 commit 02766d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/curl/interface.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,9 @@ PHP_MINIT_FUNCTION(curl)
719719
REGISTER_CURL_CONSTANT(CURLOPT_SSL_CIPHER_LIST);
720720
REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYHOST);
721721
REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYPEER);
722+
#if LIBCURL_VERSION_NUM >= 0x072900 /* 7.41.0 */
723+
REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYSTATUS);
724+
#endif
722725
REGISTER_CURL_CONSTANT(CURLOPT_STDERR);
723726
REGISTER_CURL_CONSTANT(CURLOPT_TELNETOPTIONS);
724727
REGISTER_CURL_CONSTANT(CURLOPT_TIMECONDITION);
@@ -2071,6 +2074,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{
20712074
case CURLOPT_RESUME_FROM:
20722075
case CURLOPT_SSLVERSION:
20732076
case CURLOPT_SSL_VERIFYPEER:
2077+
#if LIBCURL_VERSION_NUM >= 0x072900 /* 7.41.0 */
2078+
case CURLOPT_SSL_VERIFYSTATUS:
2079+
#endif
20742080
case CURLOPT_TIMECONDITION:
20752081
case CURLOPT_TIMEOUT:
20762082
case CURLOPT_TIMEVALUE:

0 commit comments

Comments
 (0)