]> granicus.if.org Git - curl/commit
openssl: do not log excess "TLS app data" lines for TLS 1.3
authorPeter Wu <peter@lekensteyn.nl>
Fri, 16 Nov 2018 16:57:08 +0000 (17:57 +0100)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 16 Nov 2018 21:03:31 +0000 (16:03 -0500)
commit27e4ac24cd1f8fcfac4d0673482b382f14613016
treebaf66054a67a7866b91fd45aa2d7261a74e66d9f
parent9cf7b7e66089ee2150ff6e5709a3cca91841ec0b
openssl: do not log excess "TLS app data" lines for TLS 1.3

The SSL_CTX_set_msg_callback callback is not just called for the
Handshake or Alert protocols, but also for the raw record header
(SSL3_RT_HEADER) and the decrypted inner record type
(SSL3_RT_INNER_CONTENT_TYPE). Be sure to ignore the latter to avoid
excess debug spam when using `curl -v` against a TLSv1.3-enabled server:

    * TLSv1.3 (IN), TLS app data, [no content] (0):

(Following this message, another callback for the decrypted
handshake/alert messages will be be present anyway.)

Closes https://github.com/curl/curl/pull/3281
lib/vtls/openssl.c