MINOR: quic: Send CONNECTION_CLOSE frame upon TLS alert
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 17 Nov 2021 10:56:21 +0000 (11:56 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 19 Nov 2021 13:37:35 +0000 (14:37 +0100)
commit66cbb8232c5e5c124a2e40ecc33c67e9feb185ee
tree242fe83efeb61f4e12c8d60921a1258eabdba061
parent2b2032adbb68be00f73c01340ee99c4ad7362fce
MINOR: quic: Send CONNECTION_CLOSE frame upon TLS alert

Add ->err member to quic_conn struct to store the connection errors.
This is the responsability of ->send_alert callback of SSL_QUIC_METHOD
struct to handle the TLS alert and consequently update ->err value.
At this time, when entering qc_build_pkt() we build a CONNECTION_CLOSE
frame close the connection when ->err value is not null.
include/haproxy/xprt_quic-t.h
src/xprt_quic.c