com php-src: TLS 1.0, 1.1 and 1.2 Curl constants - bug #68247: ext/curl/interface.c

From: Date: Fri, 17 Oct 2014 04:25:29 +0000
Subject: com php-src: TLS 1.0, 1.1 and 1.2 Curl constants - bug #68247: ext/curl/interface.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82384@lists.php.net to get a copy of this message
Commit: 2b5bffe6c70bc00ebe57390f48ef7569e401d2d3 Author: Rasmus Lerdorf <rasmus@php.net> Thu, 16 Oct 2014 21:25:29 -0700 Parents: a1abdba1eb94f97d9c9194e8e042bd6396b8602e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2b5bffe6c70bc00ebe57390f48ef7569e401d2d3 Log: TLS 1.0, 1.1 and 1.2 Curl constants - bug #68247 Bugs: https://bugs.php.net/68247 Changed paths: M ext/curl/interface.c Diff: diff --git a/ext/curl/interface.c b/ext/curl/interface.c index a48e8a3..43af68e 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1202,6 +1202,12 @@ PHP_MINIT_FUNCTION(curl) REGISTER_CURL_CONSTANT(CURLSSLOPT_ALLOW_BEAST); #endif +#if LIBCURL_VERSION_NUM >= 0x072200 /* Available since 7.34.0 */ + REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_0); + REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_1); + REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_2); +#endif + #if CURLOPT_FTPASCII != 0 REGISTER_CURL_CONSTANT(CURLOPT_FTPASCII); #endif

« previous php.cvs (#82384) next »