MINOR: quic: Make QUIC-TLS support at least two initial salts
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 31 Aug 2021 17:10:40 +0000 (19:10 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commit2fc76cffaf0d7f97b8bc45d13b05243950f27af1
treecf0cbf55766439c4d451d9075538fa0afe957279
parent2766e78f3b6ba7977b8c4c344337f10b0f19b306
MINOR: quic: Make QUIC-TLS support at least two initial salts

These salts are used to derive initial secrets to decrypt the first Initial packet.
We support draft-29 and v1 QUIC version initial salts.
Add parameters to our QUIC-TLS API functions used to derive these secret for
these salts.
Make our xprt_quic use the correct initial salt upon QUIC version field found in
the first paquet. Useful to support connections with curl which use draft-29
QUIC version.
include/haproxy/quic_tls.h
include/haproxy/xprt_quic-t.h
src/quic_tls.c
src/xprt_quic.c