#[repr(C)]pub enum rustls_handshake_kind {
Unknown = 0,
Full = 1,
FullWithHelloRetryRequest = 2,
Resumed = 3,
}
Expand description
Describes which sort of handshake happened.
Variants§
Unknown = 0
The type of handshake could not be determined.
This variant should not be used.
Full = 1
A full TLS handshake.
This is the typical TLS connection initiation process when resumption is not yet unavailable, and the initial client hello was accepted by the server.
FullWithHelloRetryRequest = 2
A full TLS handshake, with an extra round-trip for a hello retry request.
The server can respond with a hello retry request (HRR) if the initial client hello is unacceptable for several reasons, the most likely if no supported key shares were offered by the client.
Resumed = 3
A resumed TLS handshake.
Resumed handshakes involve fewer round trips and less cryptography than full ones, but can only happen when the peers have previously done a full handshake together, and then remember data about it.