pub fn parse_tls_handshake_msg_client_hello(
i: &[u8],
) -> IResult<&[u8], TlsMessageHandshake<'_>>
Expand description
Parse a ClientHello handshake message
This function returns a TlsMessageHandshake. To get only the ClientHello
contents, use the
parse_tls_handshake_client_hello function.
use tls_parser::*;
if let Ok((_, TlsMessageHandshake::ClientHello(ch))) =
parse_tls_handshake_msg_client_hello(bytes) {
println!("ClientHello TLS version: {}", ch.version);
println!(" number of proposed ciphersuites: {}", ch.ciphers.len());
}