Struct hyper_openssl::OpensslServer [] [src]

pub struct OpensslServer(_);

An SslServer implementation using OpenSSL.

Methods

impl OpensslServer
[src]

Constructs an OpensslServer with a reasonable default configuration.

This currently corresponds to the Intermediate profile of the [Mozilla Server Side TLS recommendations][mozilla], but is subject to change. It should be compatible with everything but the very oldest clients (notably Internet Explorer 6 on Windows XP and Java 6).

The key file should contain the server's PEM-formatted private key, and the certs file should contain a sequence of PEM-formatted certificates, starting with the leaf certificate corresponding to the private key, followed by a chain of intermediate certificates to a trusted root.

Trait Implementations

impl Clone for OpensslServer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<SslAcceptor> for OpensslServer
[src]

Performs the conversion.

impl<T> SslServer<T> for OpensslServer where T: NetworkStream + Clone + Sync + Send + Debug
[src]

The protected stream.

Wrap a server stream with SSL.