MINOR: quic: send new tokens (NEW_TOKEN) even for 1RTT sessions
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 17 Oct 2024 05:59:59 +0000 (07:59 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 17 Oct 2024 13:04:06 +0000 (15:04 +0200)
commitc7f14a38f528c03a4c29589273a19f983c6e91e4
tree42475e03f54a0825ddb76557c411f4d8fe7a02f4
parent19aa320f640f701544c3441787da1577a2479590
MINOR: quic: send new tokens (NEW_TOKEN) even for 1RTT sessions

Tokens are sent when opening a connection, just after the handshake, to
be possibly reused by the peer for the next connection. They are used
to validate the peer address during the 0RTT connection openings.
But there is no reason to reserve this feature to 0RTT connections.
This patch modifies quic_build_post_handshake_frames() to do so.
src/quic_conn.c