]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib/vts: fix a copy-pasted early data comment typo
authorDaniel McCarney <daniel@binaryparadox.net>
Fri, 11 Jul 2025 20:19:12 +0000 (16:19 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 12 Jul 2025 17:27:36 +0000 (19:27 +0200)
In gtls.c there was a typo'd comment that I think was missing the word
"no" to indicate there's "no GnuTLS way to signal no EarlyData".

This commit fixes that typo, and also updates a copy-pasted instance
that made it into wolfssl.c where it should refer to the WolfSSL API
missing the capability, not GnuTLS.

Closes #17907

lib/vtls/gtls.c
lib/vtls/wolfssl.c

index a2d093baef58435f2232a9a9c4eff07bdd67c70b..d1f5f6211741ff7cb71ba1faf11279d6017187cc 100644 (file)
@@ -1079,7 +1079,7 @@ static CURLcode gtls_on_session_reuse(struct Curl_cfilter *cf,
   connssl->earlydata_max =
     gnutls_record_get_max_early_data_size(backend->gtls.session);
   if((!connssl->earlydata_max || connssl->earlydata_max == 0xFFFFFFFFUL)) {
-    /* Seems to be GnuTLS way to signal no EarlyData in session */
+    /* Seems to be no GnuTLS way to signal no EarlyData in session */
     CURL_TRC_CF(data, cf, "SSL session does not allow earlydata");
   }
   else if(!Curl_alpn_contains_proto(alpns, scs->alpn)) {
index af84d934f6fb480ed7bd27b9f139817979dbbd82..dc73e3fea5132c1f581f063114fbd50a8791fef7 100644 (file)
@@ -517,7 +517,7 @@ static CURLcode wssl_on_session_reuse(struct Curl_cfilter *cf,
 #endif
 
   if(!connssl->earlydata_max) {
-    /* Seems to be GnuTLS way to signal no EarlyData in session */
+    /* Seems to be no WolfSSL way to signal no EarlyData in session */
     CURL_TRC_CF(data, cf, "SSL session does not allow earlydata");
   }
   else if(!Curl_alpn_contains_proto(alpns, scs->alpn)) {