Function parse_tls_handshake_client_hello

Source
pub fn parse_tls_handshake_client_hello(
    i: &[u8],
) -> IResult<&[u8], TlsClientHelloContents<'_>>
Expand description

Parse handshake message contents for ClientHello

use tls_parser::*;

if let Ok((_, ch)) = parse_tls_handshake_client_hello(bytes) {
    println!("ClientHello TLS version: {}", ch.version);
    println!("  number of proposed ciphersuites: {}", ch.ciphers.len());
}