]> git.ipfire.org Git - thirdparty/openssl.git/commit
Generate initial packet keys based on new dcid for addr validation
authorNeil Horman <nhorman@openssl.org>
Tue, 5 Nov 2024 21:25:25 +0000 (16:25 -0500)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:33 +0000 (11:27 -0500)
commit6654f8bb42fc3b936c495732545b8ac8a3679e69
tree623ccd123af646a7dffc552ea733888db96a62c3
parent6ba0457c926e19928d39e4800d7f929bc86f525f
Generate initial packet keys based on new dcid for addr validation

When using retry packets in QUIC to implement address validation, the
2nd inital packet that arrives after the server sends the retry frame
will have its CRYPTO packet encrypted using keys derived from the new
dcid, rather than the dcid in the 1st initial packet.  Update the
channel creation code to update those keys on the server so that the
CRYPTO packet is decrypted successfully

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25890)
ssl/quic/quic_channel.c