Skip to main content

extract_sni_from_client_hello_handshake_with_config

Function extract_sni_from_client_hello_handshake_with_config 

pub fn extract_sni_from_client_hello_handshake_with_config(
    i: &[u8],
    config: ClientHelloReassemblyConfig,
) -> Result<Option<Domain>, Box<dyn Error + Send + Sync>>
Available on crate feature tls only.
Expand description

Extract SNI from reassembled TLS records with explicit bounds.

Like the body-only extractor, this validates SNI but skips other extension contents. It is not a substitute for validating the entire ClientHello.