MEDIUM: quic: inspect ALPN to install app_ops
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 12 Nov 2021 10:23:29 +0000 (11:23 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 18 Nov 2021 09:50:58 +0000 (10:50 +0100)
commit71e588c8a7d182241dce274b8f47d42099eadb0a
treeeb8a5165c2a8d2af363201f69d2807d3812c0689
parentabbe91e5e82374bb8bbf6e3ebba524a5e6aff99e
MEDIUM: quic: inspect ALPN to install app_ops

Remove the hardcoded initialization of h3 layer on mux init. Now the
ALPN is looked just after the SSL handshake. The app layer is then
installed if the ALPN negotiation returned a supported protocol.

This required to add a get_alpn on the ssl_quic layer which is just a
call to ssl_sock_get_alpn() from ssl_sock. This is mandatory to be able
to use conn_get_alpn().
include/haproxy/ssl_sock.h
src/mux_quic.c
src/ssl_sock.c
src/xprt_quic.c