|
|
8d87dc |
Backport from PHP 5.5.0 and 5.5.19
|
|
|
8d87dc |
|
|
|
8d87dc |
Adapted from:
|
|
|
8d87dc |
|
|
|
8d87dc |
From e69f987948982d4259a574ca824398c26153bf42 Mon Sep 17 00:00:00 2001
|
|
|
8d87dc |
From: Pierrick Charron <pierrick@php.net>
|
|
|
8d87dc |
Date: Thu, 1 Dec 2011 21:48:07 +0000
|
|
|
8d87dc |
Subject: [PATCH] Clean / Improve the curl extension # NEWS file will come soon
|
|
|
8d87dc |
|
|
|
8d87dc |
From 2b5bffe6c70bc00ebe57390f48ef7569e401d2d3 Mon Sep 17 00:00:00 2001
|
|
|
8d87dc |
From: Rasmus Lerdorf <rasmus@php.net>
|
|
|
8d87dc |
Date: Thu, 16 Oct 2014 21:25:29 -0700
|
|
|
8d87dc |
Subject: [PATCH] TLS 1.0, 1.1 and 1.2 Curl constants - bug #68247
|
|
|
8d87dc |
|
|
|
8d87dc |
Macro available in upstream curl > 7.34
|
|
|
8d87dc |
Macro available since curl-7.19.7-43.el6 see https://bugzilla.redhat.com/1012136
|
|
|
8d87dc |
|
|
|
8d87dc |
|
|
|
8d87dc |
diff -up a/ext/curl/interface.c.old b/ext/curl/interface.c
|
|
|
8d87dc |
--- a/ext/curl/interface.c.old 2015-12-14 11:29:34.591570003 +0100
|
|
|
8d87dc |
+++ b/ext/curl/interface.c 2015-12-14 11:38:42.366016986 +0100
|
|
|
8d87dc |
@@ -595,6 +595,16 @@ PHP_MINIT_FUNCTION(curl)
|
|
|
8d87dc |
REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYHOST);
|
|
|
8d87dc |
REGISTER_CURL_CONSTANT(CURLOPT_COOKIEFILE);
|
|
|
8d87dc |
REGISTER_CURL_CONSTANT(CURLOPT_SSLVERSION);
|
|
|
8d87dc |
+
|
|
|
8d87dc |
+ /* Curl SSL Version constants (CURLOPT_SSLVERSION) */
|
|
|
8d87dc |
+ REGISTER_CURL_CONSTANT(CURL_SSLVERSION_DEFAULT);
|
|
|
8d87dc |
+ REGISTER_CURL_CONSTANT(CURL_SSLVERSION_SSLv2);
|
|
|
8d87dc |
+ REGISTER_CURL_CONSTANT(CURL_SSLVERSION_SSLv3);
|
|
|
8d87dc |
+ REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1);
|
|
|
8d87dc |
+ REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_0);
|
|
|
8d87dc |
+ REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_1);
|
|
|
8d87dc |
+ REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_2);
|
|
|
8d87dc |
+
|
|
|
8d87dc |
REGISTER_CURL_CONSTANT(CURLOPT_TIMECONDITION);
|
|
|
8d87dc |
REGISTER_CURL_CONSTANT(CURLOPT_TIMEVALUE);
|
|
|
8d87dc |
REGISTER_CURL_CONSTANT(CURLOPT_CUSTOMREQUEST);
|