Function tls_parser::tls::parse_tls_record_with_header[][src]

pub fn parse_tls_record_with_header(
    i: &[u8],
    hdr: TlsRecordHeader
) -> IResult<&[u8], Vec<TlsMessage>>

Given data and a TLS record header, parse content.

A record can contain multiple messages (with the same type).

Note that message length is checked (not required for parser safety, but for strict protocol conformance).