Class SSL.Packet

Inheritance graph
SSL.Packet SSL.Alert
Description

SSL Record Layer. Handle formatting and parsing of packets.


Variable marginal_size

protected int SSL.Packet.marginal_size

Description

The fragment max size is 2^14 (RFC 5246 6.2.1). Compressed fragments are however allowed to be 1024 bytes over (6.2.2), and Ciphertexts 2048 bytes (6.2.3). State the additional headroom in this variable.


Method create

SSL.Packet SSL.Packet(ProtocolVersion version, void|int extra)

Parameter version

The version sent packets will be created for.

Parameter extra

Additional fragment size, over the 2^14 bytes for a plaintext TLS fragment.