[][src]Function tls_parser::parse_tls_record_with_header

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

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).