Skip to main content

parse_client_hello_handshake

Function parse_client_hello_handshake 

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

Parse exactly one ClientHello from TLS records using default reassembly bounds.

Unlike the prefix parser, this rejects trailing bytes, including another handshake in the final record. Record headers may split the handshake at any byte, including within its four-byte header.