]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: ssl: stop using conn->xprt_ctx to access the ssl_sock_ctx
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Apr 2022 09:29:11 +0000 (11:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Apr 2022 17:33:04 +0000 (19:33 +0200)
commit939b0bf866b349391734dcb29d730bf9057e8d7d
tree5c143b86eb46f037024a3495cd8f24cb69c7becb
parentde827958a2d1f727cdae752427134d0873af3e94
MEDIUM: ssl: stop using conn->xprt_ctx to access the ssl_sock_ctx

The SSL functions must not use conn->xprt_ctx anymore but find the context
by calling conn_get_ssl_sock_ctx(), which will properly pass through the
transport layers to retrieve the desired information. Otherwise when the
functions are called on a QUIC connection, they refuse to work for not
being called on the proper transport.
src/ssl_sample.c
src/ssl_sock.c