]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic-be: SSL sessions initializations
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 19 Dec 2023 07:16:42 +0000 (08:16 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Jun 2025 16:37:34 +0000 (18:37 +0200)
commitf49bbd36b95d778c55e9c7f7eb7173dd141d2bad
tree9e8dca6d76bda00fb61b62186e1c64a9c918e5a5
parent1408d94bc40218a1cc334a4a5a4a5ef1d58d5b31
MINOR: quic-be: SSL sessions initializations

Modify qc_alloc_ssl_sock_ctx() to pass the connection object as parameter. It is
NULL for a QUIC listener, not NULL for a QUIC server. This connection object is
set as value for ->conn quic_conn struct member. Initialise the SSL session object from
this function for QUIC servers.
qc_ssl_set_quic_transport_params() is also modified to pass the SSL object as parameter.
This is the unique parameter this function needs. <qc> parameter is used only for
the trace.
SSL_do_handshake() must be calle as soon as the SSL object is initialized for
the QUIC backend connection. This triggers the TLS CRYPTO data delivery.
tasklet_wakeup() is also called to send asap these CRYPTO data.
Modify the QUIC_EV_CONN_NEW event trace to dump the potential errors returned by
SSL_do_handshake().
include/haproxy/quic_conn.h
include/haproxy/quic_ssl.h
src/quic_conn.c
src/quic_rx.c
src/quic_ssl.c
src/quic_trace.c