BUG/MINOR: quic: Wrong keylog callback setting.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 21 Dec 2023 13:14:22 +0000 (14:14 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jan 2024 06:53:02 +0000 (07:53 +0100)
commit0de4bd402ff29712985649384ba47005e4d2b057
treee9dd8dc71136f5f87785d9411a476c7d6c632259
parent96598f9980ed95b832b72c85ce88d43b11760520
BUG/MINOR: quic: Wrong keylog callback setting.

This bug impacts only the QUIC OpenSSL compatibility module (USE_QUIC_OPENSSL_COMPAT).

To make this module works, quic_tls_compat_keylog_callback() function must be
set as keylog callback, or at least be called by another keylog callback.
This is what SSL_CTX_keylog() was supposed to do. In addition to export the TLS
secrets via sample fetches this latter also calls quic_tls_compat_keylog_callback()
when compiled with USE_QUIC_OPENSSL_COMPAT defined.

Before this patch, SSL_CTX_keylog() was replaced by quic_tls_compat_keylog_callback()
and the TLS secret were no more exported by sample fetches.

Must be backported to 2.8.

(cherry picked from commit b26f6fb0cb358ef1df15e21151906e4c2e9f4364)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/quic_openssl_compat.c