From b65b0d4ebe67ba9d53b96887b54ca9a0f5bf523e Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Tue, 23 May 2023 12:23:05 +0100 Subject: QUIC TXP: Remove TX key update handling from TXP Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/21029) --- include/internal/quic_types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/internal/quic_types.h b/include/internal/quic_types.h index 830c755779..6b86076ff8 100644 --- a/include/internal/quic_types.h +++ b/include/internal/quic_types.h @@ -67,6 +67,11 @@ static ossl_unused ossl_inline QUIC_PN ossl_quic_pn_min(QUIC_PN a, QUIC_PN b) return a < b ? a : b; } +static ossl_unused ossl_inline int ossl_quic_pn_valid(QUIC_PN pn) +{ + return pn < (((QUIC_PN)1) << 62); +} + /* QUIC connection ID representation. */ # define QUIC_MAX_CONN_ID_LEN 20 -- cgit v1.2.3