]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Call the keylog callback for QUIC openssl wrapper from SSL_CTX_keylog()
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 7 Jun 2023 09:25:35 +0000 (11:25 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 21 Jul 2023 13:54:31 +0000 (15:54 +0200)
SSL_CTX_keylog() is the callback used when the TLS keylog feature is enabled with
tune.ssl.keylog configuration setting. But the QUIC openssl wrapper also needs
to use such a callback to receive the QUIC TLS secrets from the TLS stack.

Add a call to the keylog callback for the QUIC openssl wrapper to SSL_CTX_keylog()
to ensure that it will be called when the TLS keylog feature is enabled.

src/ssl_sock.c

index 149d5812ab4f154e22db523e3a384495cf6e9c4b..e3e321425c9588f9775933650708514d4ac9b276 100644 (file)
@@ -4486,6 +4486,9 @@ void SSL_CTX_keylog(const SSL *ssl, const char *line)
        char *lastarg = NULL;
        char *dst = NULL;
 
+#ifdef USE_QUIC_OPENSSL_COMPAT
+       quic_tls_compat_keylog_callback(ssl, line);
+#endif
        keylog = SSL_get_ex_data(ssl, ssl_keylog_index);
        if (!keylog)
                return;