diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |