From f26562bcb7807bf981fba42dfaf65754a801f338 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 3 Feb 2026 04:02:46 +0100 Subject: [PATCH] MINOR: quic: Fix build with USE_QUIC_OPENSSL_COMPAT Commit fa094d0b619343f61fab877ef65f43b404262dd9 changed the msg callback args, but forgot to fix quic_tls_msg_callback() accordingly, so do that, and remove the unused struct connection paramter. --- include/haproxy/quic_openssl_compat.h | 3 +-- src/quic_openssl_compat.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/haproxy/quic_openssl_compat.h b/include/haproxy/quic_openssl_compat.h index 7147a6ff9..c153c7b4e 100644 --- a/include/haproxy/quic_openssl_compat.h +++ b/include/haproxy/quic_openssl_compat.h @@ -20,8 +20,7 @@ #define QUIC_OPENSSL_COMPAT_CLIENT_APPLICATION "CLIENT_TRAFFIC_SECRET_0" #define QUIC_OPENSSL_COMPAT_SERVER_APPLICATION "SERVER_TRAFFIC_SECRET_0" -void quic_tls_compat_msg_callback(struct connection *conn, - int write_p, int version, int content_type, +void quic_tls_compat_msg_callback(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl); int quic_tls_compat_init(struct bind_conf *bind_conf, SSL_CTX *ctx); void quic_tls_compat_keylog_callback(const SSL *ssl, const char *line); diff --git a/src/quic_openssl_compat.c b/src/quic_openssl_compat.c index 2e55c3ced..ce9ac252a 100644 --- a/src/quic_openssl_compat.c +++ b/src/quic_openssl_compat.c @@ -359,8 +359,7 @@ leave: } /* Callback use to parse TLS messages for TLS session. */ -void quic_tls_compat_msg_callback(struct connection *conn, - int write_p, int version, int content_type, +void quic_tls_compat_msg_callback(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl) { unsigned int alert;