]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Missing call to TLS message callbacks
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 21 Dec 2023 15:11:35 +0000 (16:11 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Thu, 21 Dec 2023 15:33:06 +0000 (16:33 +0100)
commit10e96fcd177e858284252d413aaf16af06474beb
tree8492c094e7bff942832fb23743b3b469c16eccc3
parentb26f6fb0cb358ef1df15e21151906e4c2e9f4364
BUG/MINOR: quic: Missing call to TLS message callbacks

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

The TLS capture of information from client hello enabled by
tune.ssl.capture-buffer-size could not work with USE_QUIC_OPENSSL_COMPAT. This
is due to the fact the callback set for this feature was replaced by
quic_tls_compat_msg_callback(). In fact this called must be registered by
ssl_sock_register_msg_callback() as this done for the TLS client hello capture.
A call to this function appends the function passed as parameter to a list of
callbacks to be called when the TLS stack parse a TLS message.
quic_tls_compat_msg_callback() had to be modified to return if it is called
for a non-QUIC TLS session.

Must be backported to 2.8.
include/haproxy/quic_openssl_compat.h
src/quic_openssl_compat.c
src/ssl_sock.c