Beryl::TLS::Messages::ExtensionCodec
Reads and writes the contents of each extension Beryl understands.
Every reader consumes its whole input or raises decode_error.
Class methods
certificate_authorities (RFC 9846 §4.2.4): a non-empty two-byte vector of DER distinguished names, each non-empty. Returns the names.
supported_versions in a ClientHello: a one-byte vector of versions.
application_layer_protocol_negotiation (RFC 7301 §3.1): the names, none empty.
record_size_limit (RFC 8449 §4): a value below 64 is refused.
key_share in a HelloRetryRequest: the selected group.
pre_shared_key in a ServerHello: the selected identity.
supported_versions in a ServerHello: the selected version.
server_name (RFC 6066 §3): the host_name, or nil for an empty
extension (the server's acknowledgement). Only one host_name entry
may appear.
A list of two-byte values in a two-byte vector: supported_groups, signature_algorithms, signature_algorithms_cert.
certificate_authorities (§4.2.4): DER distinguished names, each in a two-byte vector, in a two-byte vector.