class

Beryl::TLS::ServerHandshake

Inherits Reference < Object

The server side of a TLS 1.3 handshake (RFC 9846 §2, §4), run over a RecordLayer. One instance runs one handshake.

Beryl's server authenticates with its certificate (or a resumption PSK with a fresh ECDHE exchange), never accepts 0-RTT data, and sends at most one HelloRetryRequest. When Context::Server#client_verify_mode asks for one, a full handshake sends a CertificateRequest and reads the client's Certificate and CertificateVerify before its Finished (§4.3.2, §4.4.2, §4.4.3); a resumed one carries the certificate chain its ticket recorded.

Constructors

new(record_layer : RecordLayer, context : Context::Server)
Source

Instance methods

perform

Runs the handshake. Every secret it derived and does not hand on is wiped when it ends, and on failure the ones it would have handed on too.

Source

Nested types