]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Set the QUIC connection as extra data before calling SSL_set_quic_method()
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 2 Jun 2023 15:00:04 +0000 (17:00 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 21 Jul 2023 13:53:41 +0000 (15:53 +0200)
commit039f5a878614c41c1d6e3f808486986f5a7f3dcf
tree34824f17e47822dfe1d81ac1416b3440b1deb711
parent85d763b11e23e948a6f8e17aa8a14d74470899c2
MINOR: quic: Set the QUIC connection as extra data before calling SSL_set_quic_method()

This patch is required for the QUIC OpenSSL wrapper, and does not break anything
for the other TLS stacks with their own QUIC support (quictls for instance).

The implementation of SSL_set_quic_method() needs to access the quic_conn object
to store data within. But SSL_set_quic_method() is only aware of the SSL session
object. This is the reason why it is required to set the quic_conn object
as extra data to the SSL session object before calling SSL_set_quic_method()
so that it can be retrieve by SSL_set_quic_method().
src/quic_conn.c