Skip to content

Commit 2b5bffe

Browse files
committed
TLS 1.0, 1.1 and 1.2 Curl constants - bug #68247
1 parent a1abdba commit 2b5bffe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/curl/interface.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,12 @@ PHP_MINIT_FUNCTION(curl)
12021202
REGISTER_CURL_CONSTANT(CURLSSLOPT_ALLOW_BEAST);
12031203
#endif
12041204

1205+
#if LIBCURL_VERSION_NUM >= 0x072200 /* Available since 7.34.0 */
1206+
REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_0);
1207+
REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_1);
1208+
REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_2);
1209+
#endif
1210+
12051211
#if CURLOPT_FTPASCII != 0
12061212
REGISTER_CURL_CONSTANT(CURLOPT_FTPASCII);
12071213
#endif

0 commit comments

Comments
 (0)