TLS Record Analysis¶
pcapkit.foundation.analysis.tls contains
tls_record() only, which decodes a TLS record
that TLS reassembled from a TCP
stream (RFC 9846 Section 5). The decode itself is TLS.analyze_record.
Added in version 1.9.0.
- pcapkit.foundation.analysis.tls.tls_record(datagram)[source]¶
Parse a TLS record reassembled by
TLS.The record is decoded by
TLS.analyze_record, as a segment’s first record is, so a record split across segments decodes as a whole one does.- Parameters:
datagram (
Datagram) – Reassembled record (reasm.tls.datagram).- Return type:
- Returns:
The record, as a
TLSinstance, orRawif it does not decode.Noneifdatagramis incomplete, as its missing octets cannot be decoded.
Note
Datagram.packetholds the same result, decoded on its first read, unless the reassembly’s__protocol_type__names another protocol, whoseanalyze_recordthen decodes it instead.