From 6edb136d725e73b48fdf994883e3d77372f07648 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 21 Jan 2016 17:30:55 +0100 Subject: [PATCH] SSL_VERIFYSTATUS is only availbe for nss, gtls and openssl fixes issue #20 --- package.xml | 2 +- src/php_http_client_curl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.xml b/package.xml index 90b1dab..1e12302 100644 --- a/package.xml +++ b/package.xml @@ -46,7 +46,7 @@ http://dev.iworks.at/ext-http/lcov/ext/http/ BSD-2-Clause diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index fed92fc..96b0bb0 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1469,7 +1469,7 @@ 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) +#if PHP_HTTP_CURL_VERSION(7,41,0) && (defined(PHP_HTTP_HAVE_OPENSSL) || defined(PHP_HTTP_HAVE_NSS) || defined(PHP_HTTP_HAVE_GNUTLS)) 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); -- 2.30.2