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

pub struct MESALINK_CTX { /* fields omitted */ }

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

impl Clone for MESALINK_CTX[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]