SSL Constant Enumerations¶
This module contains the constant enumerations shared by the record-layer
implementations under the SSL
umbrella – TLS (SSLv3 through
TLS 1.3) and DTLS. Available
enumerations include:
Added in version 1.6.0.
TLS/DTLS Content Types¶
This module contains the constant enumeration for TLS/DTLS Content Types,
which is automatically generated from pcapkit.vendor.tls.content_type.ContentType.
- class pcapkit.const.tls.content_type.ContentType(*values)[source]¶
Bases:
EnumRegistry,aenum.IntEnum[ContentType] TLS/DTLS Content Types
- classmethod _validate_value(value)[source]¶
Reject
valueunless it passes the range check_missing_()makes.Overrides
_validate_value()with that check and the message it raises, soregister()refuses exactly the valuesget()refuses, in the same words (#1816).- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valuefails that check. AValueError, so anexcept ValueErrorcaller is unaffected.
TLS/DTLS HandshakeType¶
This module contains the constant enumeration for TLS/DTLS HandshakeType,
which is automatically generated from
pcapkit.vendor.tls.handshake_type.HandshakeType. It includes the
DTLS-only messages RFC 9147 Section 5.2 adds to the registry.
- class pcapkit.const.tls.handshake_type.HandshakeType(*values)[source]¶
Bases:
EnumRegistry,aenum.IntEnum[HandshakeType] TLS/DTLS HandshakeType
- hello_verify_request = 3¶
hello_verify_request [RFC 6347][RFC 9846] – Assigned for interim draft, but the functionality was moved to a different message.
- hello_retry_request = 6¶
hello_retry_request [RFC 9846] – Assigned for interim draft, but the functionality was moved to an extension.
- unassigned_7 = 7¶
Unassigned
- client_certificate_request = 17¶
client_certificate_request [RFC 9261] – Used in TLS versions prior to 1.3.
- certificate_status = 22¶
certificate_status [RFC 6066][RFC 9846] – Used in TLS versions prior to 1.3.
- unassigned_255 = 255¶
Unassigned
- classmethod _validate_value(value)[source]¶
Reject
valueunless it passes the range check_missing_()makes.Overrides
_validate_value()with that check and the message it raises, soregister()refuses exactly the valuesget()refuses, in the same words (#1816).- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valuefails that check. AValueError, so anexcept ValueErrorcaller is unaffected.
TLS/DTLS ExtensionType Values¶
This module contains the constant enumeration for TLS/DTLS ExtensionType Values,
which is automatically generated from pcapkit.vendor.tls.extension_type.ExtensionType.
- class pcapkit.const.tls.extension_type.ExtensionType(*values)[source]¶
Bases:
EnumRegistry,aenum.IntEnum[ExtensionType] TLS/DTLS ExtensionType Values
- truncated_hmac = 4¶
truncated_hmac [RFC 6066][IESG Action 2018-08-16][RFC 9847][Tag Size Does Matter: Attacks and Proofs for the TLS Record Protocol]
- tls_lts = 26¶
tls_lts [draft-gutmann-tls-lts-11]
- TLMSP = 36¶
TLMSP [ETSI TS 103 523-2]
- TLMSP_proxying = 37¶
TLMSP_proxying [ETSI TS 103 523-2]
- TLMSP_delegate = 38¶
TLMSP_delegate [ETSI TS 103 523-2]
pre_shared_key [RFC 9846]
key_share [RFC 9846][RFC Errata 5483]
- sequence_number_encryption_algorithms = 60¶
sequence_number_encryption_algorithms [draft-pismenny-tls-dtls-plaintext-sequence-number-01]
- tls_flags = 62¶
tls_flags [draft-ietf-tls-tlsflags-14]
- classmethod _validate_value(value)[source]¶
Reject
valueunless it passes the range check_missing_()makes.Overrides
_validate_value()with that check and the message it raises, soregister()refuses exactly the valuesget()refuses, in the same words (#1816).- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valuefails that check. AValueError, so anexcept ValueErrorcaller is unaffected.
Footnotes