pub struct NativeH3SessionCacheKey {
pub sni: String,
pub alpn: Vec<Vec<u8>>,
pub verify_peer: bool,
pub fingerprint_pin: Option<String>,
}Expand description
Cache-row coordinates for a native H3 TLS session ticket.
Fields§
§sni: StringServer SNI used on the handshake that produced this ticket.
alpn: Vec<Vec<u8>>ALPN protocol list (each element is a wire-form ALPN identifier
such as b"h3"). Ordering is preserved; two clients that
advertise different ALPN orderings cache separately.
verify_peer: boolWhether the original handshake validated the peer certificate.
A ticket captured with verify_peer = false is never replayed
with verify_peer = true.
fingerprint_pin: Option<String>Optional fingerprint-pin string. When Some, switching the
ClientHello shape (cipher list / extension order / curves /
sigalgs / cert compression / GREASE / Kyber) moves to a
different row so the replay cannot emit an inconsistent
ClientHello relative to the original handshake. When None,
the entry matches any fingerprint that shares the other key
components - useful when the caller is intentionally letting
BoringSSL decide everything.
Implementations§
Trait Implementations§
Source§impl Clone for NativeH3SessionCacheKey
impl Clone for NativeH3SessionCacheKey
Source§fn clone(&self) -> NativeH3SessionCacheKey
fn clone(&self) -> NativeH3SessionCacheKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NativeH3SessionCacheKey
impl Debug for NativeH3SessionCacheKey
Source§impl Hash for NativeH3SessionCacheKey
impl Hash for NativeH3SessionCacheKey
Source§impl PartialEq for NativeH3SessionCacheKey
impl PartialEq for NativeH3SessionCacheKey
Source§fn eq(&self, other: &NativeH3SessionCacheKey) -> bool
fn eq(&self, other: &NativeH3SessionCacheKey) -> bool
self and other values to be equal, and is used by ==.