From dfd8176f2556ca7ad0029012a048a3adc840bca5 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Tue, 23 May 2023 12:23:05 +0100 Subject: QUIC WIRE: Utility function to determine if PN is in an ACK frame Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/21029) --- include/internal/quic_wire.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/internal/quic_wire.h b/include/internal/quic_wire.h index a514d08d3d..e9ff8e6f35 100644 --- a/include/internal/quic_wire.h +++ b/include/internal/quic_wire.h @@ -159,6 +159,9 @@ typedef struct ossl_quic_frame_ack_st { unsigned int ecn_present : 1; } OSSL_QUIC_FRAME_ACK; +/* Returns 1 if the given frame contains the given PN. */ +int ossl_quic_frame_ack_contains_pn(const OSSL_QUIC_FRAME_ACK *ack, QUIC_PN pn); + /* QUIC Frame: STREAM */ typedef struct ossl_quic_frame_stream_st { uint64_t stream_id; /* Stream ID */ -- cgit v1.2.3