struct

Beryl::TLS::Limits

Inherits Struct < Value < Object

The bounds a connection puts on what its peer sends (plan §4, "Limits on untrusted input"). The defaults are the plan's; an application may tighten them through Context::Client#limits= or Context::Server#limits=.

Constructors

new(*, largest_handshake_message_bytesize : Int32 = 65536, largest_certificate_chain_bytesize : Int32 = 65536, largest_certificate_count : Int32 = 10, largest_consecutive_empty_record_count : Int32 = 32, largest_consecutive_warning_alert_count : Int32 = 1, largest_key_update_count_per_minute : Int32 = 32, largest_skipped_early_data_bytesize : Int32 = 16384, handshake_timeout : Time::Span = 10.seconds, record_size_limit : Int32 = 16385, largest_record_count_per_key : UInt64 = 16777216_u64)
Source

Instance methods

handshake_timeout

How long a handshake may take before the socket is closed.

Source
largest_certificate_chain_bytesize

The largest Certificate message's certificate list.

Source
largest_certificate_count

The most certificates in one Certificate message.

Source
largest_consecutive_empty_record_count

The most records in a row that carry no content.

Source
largest_consecutive_warning_alert_count

The most warning alerts in a row (closes the "SSL Death Alert" class, CVE-2016-8610).

Source
largest_handshake_message_bytesize

The largest handshake message read, header excluded.

Source
largest_key_update_count_per_minute

The most KeyUpdate messages read in one minute.

Source
largest_record_count_per_key

How many records are sealed under one key before the connection moves to the next with a KeyUpdate. The default stays well under the AES-GCM confidentiality limit of RFC 9846 §5.5 (2^24.5 full-size records) and applies to every suite.

Source
largest_skipped_early_data_bytesize

The most bytes of refused 0-RTT records a server skips (RFC 9846 §4.2.10).

Source
record_size_limit

The record_size_limit this end announces (RFC 8449): the largest protected record's inner plaintext, content type and padding included, that it accepts from its peer once both ends sent the extension. Between 64 and 16,385; a smaller value lowers the memory a connection needs for each record it reads.

Source