MINOR: quic: Add useful error traces about qc_ssl_sess_init() failures
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 15 May 2025 08:18:09 +0000 (10:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 May 2025 16:15:03 +0000 (18:15 +0200)
commitab22d6b37d9ca2655f5247ca85d33734472e38e8
treed2f4bc198ba93d1517bf1d06484d78f42cfd19fc
parentb3a91dc34db573fa69474010c1eca5f07dc7845a
MINOR: quic: Add useful error traces about qc_ssl_sess_init() failures

There were no traces to diagnose qc_ssl_sess_init() failures from QUIC traces.
This patch add calls to TRACE_DEVEL() into qc_ssl_sess_init() and its caller
(qc_alloc_ssl_sock_ctx()). This was useful at least to diagnose SSL context
initialization failures when porting QUIC to the new OpenSSL 3.5 QUIC API.

Should be easily backported as far as 2.6.

(cherry picked from commit 894595b711835dba9a7432fa364ea57806b2bb0c)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 76636502b94941061a887566d268ffa6f01e61ca)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/quic_ssl.c