pub fn extract_sni(buf: &[u8]) -> SniResult
Extracts the SNI hostname from the start of a TLS stream. Bounds-safe and panic-free; see the module docs for the SniResult contract.
SniResult