git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] Allow use of TLS 1.3

From
Loganaden Velvindron <logan@hackers.mu>
Date
Mar 23, 2018, 19:34 UTC
Message-ID
<20180323193435.GA21971@voidlinux>

Add a tlsv1.3 option to http.sslVersion in addition to the existing tlsv1.[012] options. libcurl has supported this since 7.52.0.

Done during IETF 101 Hackathon
Signed-off-by: Loganaden Velvindron <logan@hackers.mu>
---
 Documentation/config.txt | 2 +-
 http.c                   | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index ce9102cea..b18cb9104 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1957,7 +1957,7 @@ http.sslVersion::
 	- tlsv1.0
 	- tlsv1.1
 	- tlsv1.2
-
+	- tlsv1.3
 +
 Can be overridden by the `GIT_SSL_VERSION` environment variable.
 To force git to use libcurl's default ssl version and ignore any
diff --git a/http.c b/http.c
index a5bd5d62c..25eb84c11 100644
--- a/http.c
+++ b/http.c
@@ -62,6 +62,9 @@ static struct {
 	{ "tlsv1.1", CURL_SSLVERSION_TLSv1_1 },
 	{ "tlsv1.2", CURL_SSLVERSION_TLSv1_2 },
 #endif
+#ifdef CURL_SSLVERSION_TLSv1_3
+	{ "tlsv1.3", CURL_SSLVERSION_TLSv1_3 }
+#endif
 };
 #if LIBCURL_VERSION_NUM >= 0x070903
 static const char *ssl_key;
-- 
2.16.2
Next: Daniel Stenberg
Message 1 of 10 in “Allow use of TLS 1.3”
  1. Allow use of TLS 1.3Loganaden Velvindron, Mar 23, 2018
  2. Daniel StenbergMar 23, 2018
  3. Junio C HamanoMar 23, 2018
  4. Loganaden VelvindronMar 24, 2018
  5. Loganaden VelvindronMar 24, 2018
  6. Loganaden VelvindronMar 24, 2018
  7. Loganaden VelvindronMar 24, 2018
  8. Junio C HamanoMar 23, 2018
  9. Ævar Arnfjörð BjarmasonMar 23, 2018
  10. Loganaden VelvindronMar 24, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.