verifystatus SSL request option support (OCSP)
authorMichael Wallner <mike@php.net>
Thu, 5 Feb 2015 14:49:33 +0000 (15:49 +0100)
committerMichael Wallner <mike@php.net>
Thu, 5 Feb 2015 14:49:33 +0000 (15:49 +0100)
php_http_client_curl.c

index cf84772a3f94a119dd106ca0bd4c297624fdd5b7..501681d3ec9e96df9a5101c04e72a3d504055ee7 100644 (file)
@@ -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;