QUIC RX: Support refcounted packets and eliminate wrapper
authorHugo Landau <hlandau@openssl.org>
Mon, 31 Oct 2022 14:39:13 +0000 (14:39 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 13 Jan 2023 13:20:10 +0000 (13:20 +0000)
commit6d5d5fc9a9f6b701fc5e17f05d3df464fe0bc56e
treef8472a74275baaa0618ba6a11707c906be25cbe3
parentf71ae05a4d22d52780fc7cfc7e60710b74fd3dd7
QUIC RX: Support refcounted packets and eliminate wrapper

Previously, the QRX filled in a OSSL_QRX_PKT structure provided by the
caller. This necessitated the caller managing reference counting itself
using a OSSL_QRX_PKT_WRAP structure. The need for this structure has
been eliminated by adding refcounting support to the QRX itself. The QRX
now outputs a pointer to an OSSL_QRX_PKT instead of filling in a
structure provided by the caller. The OSSL_QRX_PKT_WRAP structure has
been eliminated.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19703)
13 files changed:
include/internal/quic_record_rx.h
include/internal/quic_record_rx_wrap.h [deleted file]
include/internal/quic_sf_list.h
include/internal/quic_stream.h
ssl/quic/build.info
ssl/quic/quic_record_rx.c
ssl/quic/quic_record_rx_wrap.c [deleted file]
ssl/quic/quic_rstream.c
ssl/quic/quic_rx_depack.c
ssl/quic/quic_sf_list.c
test/quic_record_test.c
test/quic_stream_test.c
test/quic_txp_test.c