Bug #14023: curl does not initialize HTTPS correctly - hence does not work.

From: Date: Mon, 12 Nov 2001 05:26:31 +0000
Subject: Bug #14023: curl does not initialize HTTPS correctly - hence does not work.
Groups: php.dev 
Request: Send a blank email to php-dev+get-70201@lists.php.net to get a copy of this message
From: alan_k@hklc.com Operating system: linux debian PHP version: 4.0CVS-2001-11-12 PHP Bug Type: cURL related Bug description: curl does not initialize HTTPS correctly - hence does not work. the curl.c file initializes curl with nothing, the curl init library will then skip the init for ssl, and hence all https connections will fail. also CURLOPT_SSL_VERIFYHOST is not defined.. patch below.. regards alan --- curl.c 18 Oct 2001 19:24:51 -0000 1.94 +++ curl.c 12 Nov 2001 05:25:05 -0000 @@ -142,6 +142,7 @@ REGISTER_CURL_CONSTANT(CURLOPT_SSLCERT); REGISTER_CURL_CONSTANT(CURLOPT_SSLCERTPASSWD); REGISTER_CURL_CONSTANT(CURLOPT_WRITEHEADER); + REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYHOST); REGISTER_CURL_CONSTANT(CURLOPT_COOKIEFILE); REGISTER_CURL_CONSTANT(CURLOPT_SSLVERSION); REGISTER_CURL_CONSTANT(CURLOPT_TIMECONDITION); @@ -253,7 +254,7 @@ REGISTER_CURL_CONSTANT(CURLE_OBSOLETE); REGISTER_CURL_CONSTANT(CURLE_SSL_PEER_CERTIFICATE); - if (curl_global_init(CURL_GLOBAL_NOTHING) != CURLE_OK) { + if (curl_global_init(CURL_GLOBAL_SSL) != CURLE_OK) { return FAILURE; } @@ -658,6 +659,7 @@ case CURLOPT_FRESH_CONNECT: case CURLOPT_FORBID_REUSE: case CURLOPT_CONNECTTIMEOUT: + case CURLOPT_SSL_VERIFYHOST: case CURLOPT_SSL_VERIFYPEER: convert_to_long_ex(zvalue); error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue)); -- Edit bug report at: http://bugs.php.net/?id=14023&edit=1

« previous php.dev (#70201) next »