class

Beryl::TLS::ClientHandshake

Inherits Reference < Object

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

Order of events: ClientHello; at most one HelloRetryRequest and a second ClientHello; ServerHello; EncryptedExtensions; then either Finished (resumed) or [CertificateRequest] Certificate CertificateVerify Finished; then the client's [Certificate [CertificateVerify]] Finished.

Constructors

new(record_layer : RecordLayer, context : Context::Client, hostname : String | Nil)
Source

Instance methods

perform

Runs the handshake.

Source

Nested types