diff --git a/reference/curl/constants.xml b/reference/curl/constants.xml index 295e7baa97..631dfd0d21 100644 --- a/reference/curl/constants.xml +++ b/reference/curl/constants.xml @@ -628,6 +628,83 @@ + + + CURL_SSLVERSION_DEFAULT + (integer) + + + + + + + + + + CURL_SSLVERSION_TLSv1 + (integer) + + + + + + + + + + CURL_SSLVERSION_SSLv2 + (integer) + + + + + + + + + + CURL_SSLVERSION_SSLv3 + (integer) + + + + + + + + + + CURL_SSLVERSION_TLSv1_0 + (integer) + + + + Available since PHP 5.5.19 and 5.6.3 + + + + + + CURL_SSLVERSION_TLSv1_1 + (integer) + + + + Available since PHP 5.5.19 and 5.6.3 + + + + + + CURL_SSLVERSION_TLSv1_2 + (integer) + + + + Available since PHP 5.5.19 and 5.6.3 + + + CURLOPT_TIMECONDITION @@ -635,7 +712,7 @@ - + diff --git a/reference/curl/functions/curl-setopt.xml b/reference/curl/functions/curl-setopt.xml index 1363b0afa8..705efb9cb7 100644 --- a/reference/curl/functions/curl-setopt.xml +++ b/reference/curl/functions/curl-setopt.xml @@ -725,12 +725,16 @@ One of CURL_SSLVERSION_DEFAULT (0), CURL_SSLVERSION_TLSv1 (1), - CURL_SSLVERSION_SSLv2 (2) or - CURL_SSLVERSION_SSLv3 (3). + CURL_SSLVERSION_SSLv2 (2), + CURL_SSLVERSION_SSLv3 (3), + CURL_SSLVERSION_TLSv1_0 (4), + CURL_SSLVERSION_TLSv1_1 (5) or + CURL_SSLVERSION_TLSv1_2 (6). - Setting this to anything other than 0 or 1 is dangerous given - the known vulnerabilities in SSLv2 and SSLv3. + Your best bet is to not set this and let it use the default. + Setting it to 2 or 3 is very dangerous given the known + vulnerabilities in SSLv2 and SSLv3.