]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: don't log raw record headers
authorCherish98 <66007047+Cherish98@users.noreply.github.com>
Sun, 15 Jan 2023 18:15:23 +0000 (18:15 +0000)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 24 Jan 2023 08:31:07 +0000 (03:31 -0500)
- Skip content type SSL3_RT_HEADER in verbose TLS output.

This commit prevents bogus and misleading verbose TLS header messages as
discussed in #10299.

Assisted-by: Peter Wu
Closes https://github.com/curl/curl/pull/10299

lib/vtls/openssl.c

index 9ebb5e991f0c19d5ca2f0ddefd7565fd9ef84cbf..9dbd4a4e1253a46905b246aa8b70888f192e54ad 100644 (file)
@@ -2698,6 +2698,9 @@ static void ossl_trace(int direction, int ssl_ver, int content_type,
    * For TLS 1.3, skip notification of the decrypted inner Content-Type.
    */
   if(ssl_ver
+#ifdef SSL3_RT_HEADER
+     && content_type != SSL3_RT_HEADER
+#endif
 #ifdef SSL3_RT_INNER_CONTENT_TYPE
      && content_type != SSL3_RT_INNER_CONTENT_TYPE
 #endif