diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-05-23 12:23:05 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-06-16 09:26:27 +1000 |
commit | 81b400cf900c530e170a1488222191c5568f6b2d (patch) | |
tree | 5e6bb94d21cf7da37a819127def1dc439593645b | |
parent | dfd8176f2556ca7ad0029012a048a3adc840bca5 (diff) |
QUIC ACKM: Allow largest acked PN to be queried
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21029)
-rw-r--r-- | include/internal/quic_ackm.h | 3 | ||||
-rw-r--r-- | ssl/quic/quic_ackm.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/internal/quic_ackm.h b/include/internal/quic_ackm.h index 1fedc08769..7574c97a96 100644 --- a/include/internal/quic_ackm.h +++ b/include/internal/quic_ackm.h @@ -263,6 +263,9 @@ int ossl_ackm_mark_packet_pseudo_lost(OSSL_ACKM *ackm, */ OSSL_TIME ossl_ackm_get_pto_duration(OSSL_ACKM *ackm); +/* Returns the largest acked PN in the given PN space. */ +QUIC_PN ossl_ackm_get_largest_acked(OSSL_ACKM *ackm, int pkt_space); + # endif #endif diff --git a/ssl/quic/quic_ackm.c b/ssl/quic/quic_ackm.c index 4caf146c61..777d71ce53 100644 --- a/ssl/quic/quic_ackm.c +++ b/ssl/quic/quic_ackm.c @@ -1677,3 +1677,8 @@ OSSL_TIME ossl_ackm_get_pto_duration(OSSL_ACKM *ackm) return duration; } + +QUIC_PN ossl_ackm_get_largest_acked(OSSL_ACKM *ackm, int pkt_space) +{ + return ackm->largest_acked_pkt[pkt_space]; +} |