Skip to main content

extract_sni

Function extract_sni 

Source
pub fn extract_sni(buf: &[u8]) -> SniResult
Expand description

Extracts the SNI hostname from the start of a TLS stream. Bounds-safe and panic-free; see the module docs for the SniResult contract.