Function rustls::client::hs::prepare_resumption
source · fn prepare_resumption<'a>(
resuming: &'a Option<Retrieved<ClientSessionValue>>,
exts: &mut Vec<ClientExtension>,
suite: Option<SupportedCipherSuite>,
cx: &mut Context<'_, ClientConnectionData>,
config: &ClientConfig,
) -> Option<Retrieved<&'a Tls13ClientSessionValue>>
Expand description
Prepare resumption with the session state retrieved from storage.
This function will push onto exts
to
(a) request a new ticket if we don’t have one, (b) send our TLS 1.2 ticket after retrieving an 1.2 session, (c) send a request for 1.3 early data if allowed and (d) send a 1.3 preshared key if we have one.
For resumption to work, the currently negotiated cipher suite (if available) must be able to resume from the resuming session’s cipher suite.
If 1.3 resumption can continue, returns the 1.3 session value for further processing.