BUG/MEDIUM: quic: keylog callback not called (USE_OPENSSL_COMPAT)
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 16 Jan 2024 09:17:27 +0000 (10:17 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 Jan 2024 12:59:14 +0000 (13:59 +0100)
commit2e16bafec4adf26300346f6fc58a02845c9c2139
treefb54394c2501d62a6a7f7c9e790f7cfe74bcdcd6
parent4216dfd7197dfe9e03c46722ca8e94d9e88ac8aa
BUG/MEDIUM: quic: keylog callback not called (USE_OPENSSL_COMPAT)

This bug impacts only the QUIC OpenSSL compatibility module (USE_QUIC_OPENSSL_COMPAT)
and it was introduced by this commit:

    BUG/MINOR: quic: Wrong keylog callback setting.

quic_tls_compat_keylog_callback() callback was no more set when the SSL keylog was
enabled by tune.ssl.keylog setting. This is the callback which sets the TLS secrets
into haproxy.

Set it again when the SSL keylog is not enabled by configuration.

Thank you to @Greg57070 for having reported this issue in GH #2412.

Must be backported as far as 2.8.

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