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
type Target = SslSessionRef
type Target = SslSessionRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
type CType = SSL_SESSION
type CType = SSL_SESSION
The raw C type.
type Ref = SslSessionRef
type Ref = SslSessionRef
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
Mutably borrows from an owned value. Read more