]> git.ipfire.org Git - thirdparty/openssl.git/commit
Reference count QUIC_TOKENS
authorNeil Horman <nhorman@openssl.org>
Mon, 27 Jan 2025 18:56:40 +0000 (13:56 -0500)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:33 +0000 (11:27 -0500)
commitfce82b6ccc6b0461fa2f028fc32e8824dc7da0d1
treed8a9101d0a9e24524c69db40e344266baa20b616
parent725074f4e7068220843bd0bb0db3b05c56fdb8d6
Reference count QUIC_TOKENS

closer reading of RFC 9000 indicates that a NEW_TOKEN token can be
(re)used repeatedly.

so instead of creating a use once and discard pattern in the token api.
Let the tokens stick around until they are replaced with a new token
from the server.  To do this, we need to ref count the tokens so that we
don't accidentally free them while a given client is waiting to send an
initial frame making use of them.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26517)
include/internal/quic_ssl.h
ssl/quic/quic_impl.c