SSLv2 Constant Enumerations

This module contains all constant enumerations of SSLv2 implementations. Available enumerations include:

SSLv2_HandshakeType

SSLv2 Handshake Message Type [*]

SSLv2_Version

SSLv2 Protocol Version [†]

Added in version 1.6.0.

SSLv2 Handshake Message Type

This module contains the constant enumeration for SSLv2 Handshake Message Type, which is automatically generated from pcapkit.vendor.sslv2.handshake_type.HandshakeType. Its source is the expired SSLv2 draft linked above, not a live registry, so the crawler reads a DATA attribute instead of fetching a URL.

class pcapkit.const.sslv2.handshake_type.HandshakeType(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[HandshakeType] SSLv2 Handshake Message Type

ERROR = 0

MSG-ERROR

CLIENT_HELLO = 1

MSG-CLIENT-HELLO

CLIENT_MASTER_KEY = 2

MSG-CLIENT-MASTER-KEY

CLIENT_FINISHED = 3

MSG-CLIENT-FINISHED

SERVER_HELLO = 4

MSG-SERVER-HELLO

SERVER_VERIFY = 5

MSG-SERVER-VERIFY

SERVER_FINISHED = 6

MSG-SERVER-FINISHED

REQUEST_CERTIFICATE = 7

MSG-REQUEST-CERTIFICATE

CLIENT_CERTIFICATE = 8

MSG-CLIENT-CERTIFICATE

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

HandshakeType

SSLv2 Protocol Version

This module contains the constant enumeration for SSLv2 Protocol Version, which is automatically generated from pcapkit.vendor.sslv2.version.Version, for the same reason HandshakeType is.

class pcapkit.const.sslv2.version.Version(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Version] SSLv2 Protocol Version

SSLv2 = 2

SSL-2.0

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Version

Footnotes