Skip to content

Commit d81b651

Browse files
loganadengitster
authored andcommitted
http: allow use of TLS 1.3
Add a tlsv1.3 option to http.sslVersion in addition to the existing tlsv1.[012] options. libcurl has supported this since 7.52.0. This requires OpenSSL 1.1.1 with TLS 1.3 enabled or curl built with recent versions of NSS or BoringSSL as the TLS backend. Signed-off-by: Loganaden Velvindron <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d32eb83 commit d81b651

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Documentation/config.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,6 +1948,7 @@ http.sslVersion::
19481948
- tlsv1.0
19491949
- tlsv1.1
19501950
- tlsv1.2
1951+
- tlsv1.3
19511952

19521953
+
19531954
Can be overridden by the `GIT_SSL_VERSION` environment variable.

http.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ static struct {
6262
{ "tlsv1.1", CURL_SSLVERSION_TLSv1_1 },
6363
{ "tlsv1.2", CURL_SSLVERSION_TLSv1_2 },
6464
#endif
65+
#if LIBCURL_VERSION_NUM >= 0x073400
66+
{ "tlsv1.3", CURL_SSLVERSION_TLSv1_3 },
67+
#endif
6568
};
6669
#if LIBCURL_VERSION_NUM >= 0x070903
6770
static const char *ssl_key;

0 commit comments

Comments
 (0)