diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-11-08 16:57:55 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-12-06 10:40:11 +0000 |
commit | 1f2958536eff61984b4746410cd3e4fe8f0383dd (patch) | |
tree | bedf9638ea2c8c32545ed7733d646f8998bc7def /include | |
parent | 766603a9a5297c804e04a82e041097c404e0f24b (diff) |
QUIC LCIDM: Add debug calls
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22673)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_lcidm.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/internal/quic_lcidm.h b/include/internal/quic_lcidm.h index e01ac80f9e..6c040f80be 100644 --- a/include/internal/quic_lcidm.h +++ b/include/internal/quic_lcidm.h @@ -235,6 +235,23 @@ int ossl_quic_lcidm_lookup(QUIC_LCIDM *lcidm, uint64_t *seq_num, void **opaque); +/* + * Debug call to manually remove a specific LCID. Should not be needed in normal + * usage. Returns 1 if the LCID was successfully found and removed and 0 + * otherwise. + */ +int ossl_quic_lcidm_debug_remove(QUIC_LCIDM *lcidm, + const QUIC_CONN_ID *lcid); + +/* + * Debug call to manually add a numbered LCID with a specific CID value and + * sequence number. Should not be needed in normal usage. Returns 1 on success + * and 0 on failure. + */ +int ossl_quic_lcidm_debug_add(QUIC_LCIDM *lcidm, void *opaque, + const QUIC_CONN_ID *lcid, + uint64_t seq_num); + # endif #endif |