Struct openssl::ssl::SslSession[][src]

pub struct SslSession(_);
Expand description

An encoded SSL session.

These can be cached to share sessions across connections.

Implementations

Deserializes a DER-encoded session structure.

This corresponds to d2i_SSL_SESSION.

Methods from Deref<Target = SslSessionRef>

Returns the SSL session ID.

This corresponds to SSL_SESSION_get_id.

Returns the length of the master key.

This corresponds to SSL_SESSION_get_master_key.

Copies the master key into the provided buffer.

Returns the number of bytes written, or the size of the master key if the buffer is empty.

This corresponds to SSL_SESSION_get_master_key.

Gets the maximum amount of early data that can be sent on this session.

Requires OpenSSL 1.1.1 or newer.

This corresponds to SSL_SESSION_get_max_early_data.

Returns the time at which the session was established, in seconds since the Unix epoch.

This corresponds to SSL_SESSION_get_time.

Returns the sessions timeout, in seconds.

A session older than this time should not be used for session resumption.

This corresponds to SSL_SESSION_get_timeout.

Returns the session’s TLS protocol version.

Requires OpenSSL 1.1.0 or newer.

This corresponds to SSL_SESSION_get_protocol_version.

Serializes the session into a DER-encoded structure.

This corresponds to i2d_SSL_SESSION.

Trait Implementations

Performs the conversion.

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

Returns a raw pointer to the wrapped value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.