Struct openssl::ssl::SslSession[]

pub struct SslSession(_);

An encoded SSL session.

These can be cached to share sessions across connections.

Methods

impl SslSession
[src]

Deserializes a DER-encoded session structure.

This corresponds to d2i_SSL_SESSION.

Methods from Deref<Target = SslSessionRef>

Important traits for &'a [u8]

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.

Serializes the session into a DER-encoded structure.

This corresponds to i2d_SSL_SESSION.

Trait Implementations

impl ForeignType for SslSession

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.

impl Drop for SslSession

Executes the destructor for this type. Read more

impl Deref for SslSession

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for SslSession

Mutably dereferences the value.

impl Borrow<SslSessionRef> for SslSession

Immutably borrows from an owned value. Read more

impl AsRef<SslSessionRef> for SslSession

Performs the conversion.

impl Send for SslSession
[src]

impl Sync for SslSession
[src]

impl Clone for SslSession
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more