]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GnuTLS: require 3.7.2 for earlydata
authorStefan Eissing <stefan@eissing.org>
Tue, 26 May 2026 09:25:01 +0000 (11:25 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 26 May 2026 11:41:21 +0000 (13:41 +0200)
Since all API features we need for TLSv1.3 earlydata support do exist
only from version 3.7.2 onwards, make that the minimal version required.

Fixes #21750
Reported-by: Johannes Schlatow
Closes #21751

lib/vtls/gtls.c
tests/http/testenv/env.py

index a8ffc28e8c375ad835ecc43fc62a27b526d73967..22001c3391259e14b1e84d54aeda68809f8b1565 100644 (file)
@@ -72,7 +72,7 @@ static void tls_log_func(int level, const char *str)
 #endif
 
 #undef CURL_GNUTLS_EARLY_DATA
-#if GNUTLS_VERSION_NUMBER >= 0x03060d
+#if GNUTLS_VERSION_NUMBER >= 0x030702
 #define CURL_GNUTLS_EARLY_DATA
 #endif
 
index 30fc0d0a734a09f32778d0b8770c6ba38e0066e2..c7bbfc4c54619f00c0dc592f217ee7e0590eaa5f 100644 (file)
@@ -523,7 +523,7 @@ class Env:
     @staticmethod
     def curl_can_early_data() -> bool:
         if Env.curl_uses_lib('gnutls'):
-            return Env.curl_lib_version_at_least('gnutls', '3.6.13')
+            return Env.curl_lib_version_at_least('gnutls', '3.7.2')
         return Env.curl_uses_any_libs(['wolfssl', 'quictls', 'openssl'])
 
     @staticmethod