[][src]Struct openssl::ssl::SslContext

pub struct SslContext { /* fields omitted */ }

An SSL context object

Internally ref-counted, use .clone() in the same way as Rc and Arc.

Methods

impl SslContext
[src]

Creates a new SSL context.

Configures the certificate verification method for new connections.

Configures the certificate verification method for new connections also carrying supplied data.

Configures the server name indication (SNI) callback for new connections

obtain the server name with get_servername then set the corresponding context with set_ssl_context

Configures the server name indication (SNI) callback for new connections carrying supplied data

Sets verification depth

Use the default locations of trusted certificates for verification.

These locations are read from the SSL_CERT_FILE and SSL_CERT_DIR environment variables if present, or defaults specified at OpenSSL build time otherwise.

Specifies the file that contains trusted CA certificates.

Set the context identifier for sessions

This value identifies the server's session cache to a clients, telling them when they're able to reuse sessions. Should be set to a unique value per server, unless multiple servers share a session cache.

This value should be set when using client certificates, or each request will fail handshake and need to be restarted.

Specifies the file that contains certificate

Specifies the file that contains certificate chain

Specifies the certificate

Adds a certificate to the certificate chain presented together with the certificate specified using set_certificate()

Specifies the file that contains private key

Specifies the private key

Check consistency of private key and certificate

Trait Implementations

impl<'a> IntoSsl for &'a SslContext
[src]

impl Clone for SslContext
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for SslContext
[src]

Executes the destructor for this type. Read more

impl Sync for SslContext
[src]

impl Send for SslContext
[src]

impl Debug for SslContext
[src]

Formats the value using the given formatter. Read more

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

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

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more