]> 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>
Tue, 4 Feb 2025 14:15:28 +0000 (09:15 -0500)
commit671bb043222fbcd9fa83c47c0fc617879ac19a6d
tree4a63b557e2e0ae98cfaec1fe930ced84ee334394
parente932f82427eed7964557bc6d3cd450c77e5d3189
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