From: Daniel McCarney Date: Fri, 11 Jul 2025 20:19:12 +0000 (-0400) Subject: lib/vts: fix a copy-pasted early data comment typo X-Git-Tag: curl-8_15_0~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2028823a8154208f990696431b9eb23fc11fc69;p=thirdparty%2Fcurl.git lib/vts: fix a copy-pasted early data comment typo 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 --- diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index a2d093baef..d1f5f62117 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -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)) { diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c index af84d934f6..dc73e3fea5 100644 --- a/lib/vtls/wolfssl.c +++ b/lib/vtls/wolfssl.c @@ -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)) {