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

pub struct SslContext {
    // some 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 Send for SslContext
[src]

impl Sync for SslContext
[src]

impl Clone for SslContext
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SslContext
[src]

Formats the value using the given formatter.

impl Drop for SslContext
[src]

A method called when the value goes out of scope. Read more

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