]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: ssl: remove connection from msg callback args master quic-interop flx04/master flx04/quic-interop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 28 Jan 2026 09:37:38 +0000 (10:37 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 29 Jan 2026 10:14:09 +0000 (11:14 +0100)
commitfa094d0b619343f61fab877ef65f43b404262dd9
tree483e97f5e9fefa94a9b1103383607ff31c48963e
parent869a997a68a23ef235aaea16bc80dfb1801ec7ef
MEDIUM: ssl: remove connection from msg callback args

SSL msg callbacks are used for notification about sent/received SSL
messages. Such callbacks are registered via
ssl_sock_register_msg_callback().

Prior to this patch, connection was passed as first argument of these
callbacks. However, most of them do not use it. Worst, this may lead to
confusion as connection can be NULL in QUIC context.

This patch cleans this by removing connection argument. As an
alternative, connection can be retrieved in callbacks if needed using
ssl_sock_get_conn() but the code must be ready to deal with potential
NULL instances. As an example, heartbeat parsing callback has been
adjusted in this manner.
include/haproxy/ssl_sock-t.h
src/ssl_sock.c