Skip to main content

Module dtls

Module dtls 

Source
Expand description

Legacy DTLS record framing from RFC 6347 section 4.1.

Constantsยง

LENGTH_OFFSET ๐Ÿ”’
Length follows type, version, epoch and the 48-bit sequence number.
RECORD_HEADER_BYTES ๐Ÿ”’
Record header containing type, version, epoch, sequence number and length.
VERSION_1_0 ๐Ÿ”’
DTLS 1.0 record-layer wire version. Reference: https://www.rfc-editor.org/rfc/rfc4347.html#section-4.1
VERSION_1_2 ๐Ÿ”’
DTLS 1.2 wire version, distinct from TLS 1.2โ€™s version bytes.
VERSION_OFFSET ๐Ÿ”’
Version follows the one-byte content type.

Functionsยง

has_datagram_shape ๐Ÿ”’
Checks the first record after the WebRTC multiplexer has selected DTLS. Later records, record contents and cryptographic validity remain unchecked.