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