MINOR: quic: Modify NEW_TOKEN frame structure (qf_new_token struct)
authorFrederic Lecaille <flecaille@haproxy.com>
Fri, 30 Aug 2024 12:47:08 +0000 (14:47 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 5 Sep 2024 14:23:20 +0000 (16:23 +0200)
commitceb7dbf4201acbb03ab7a22e7a116d4c4e443463
tree022160336b43b45099e87ba3a9eebff5622f24d2
parent0040d08b196bfddc8799fa4ecda310db1ddd2943
MINOR: quic: Modify NEW_TOKEN frame structure (qf_new_token struct)

Modify qf_new_token structure to use a static buffer with QUIC_TOKEN_LEN
as size as defined by the token for future connections (quic_token.c).
Modify consequently the NEW_TOKEN frame parser (see quic_parse_new_token_frame()).
Also add comments to denote that the NEW_TOKEN parser function is used only by
clients and that its builder is used only by servers.

(cherry picked from commit e926378375bcf579daadea071c600651eb7dce0d)
[fl: remove useless openssl/chacha.h header inclusion when moving
     openssl-compat.h at the start of the header inclusions as expected by this
     patch]
Signed-off-by: Frederic Lecaille <flecaille@haproxy.com>
include/haproxy/quic_frame-t.h
include/haproxy/quic_tls-t.h
src/quic_frame.c