Struct mesalink::libssl::ssl::MESALINK_CTX[][src]

pub struct MESALINK_CTX { /* fields omitted */ }
Expand description

A global context structure which is created by a server or a client once per program. It holds default values for SSL objects which are later created for individual connections.

Pass a valid SSL_METHOD object to SSL_CTX_new to create a SSL_CTX object. Note that only TLS 1.2 and 1.3 (draft 18) are supported.

For a context to be used in a TLS server, call SSL_CTX_use_certificate_chain_file and SSL_CTX_use_PrivateKey_file to set the certificates and private key. Otherwise, SSL_accept would fail and return an error code NoCertificatesPresented. If the context is created for a TLS client, no further action is needed as MesaLink has built-in root CA certificates and default ciphersuites. Support for configurable ciphersuites will be added soon in the next release.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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.