Crate tokio_openssl[][src]

Async TLS streams backed by OpenSSL

This library is an implementation of TLS streams using OpenSSL for negotiating the connection. Each TLS stream implements the Read and Write traits to interact and interoperate with the rest of the futures I/O ecosystem. Client connections initiated from this crate verify hostnames automatically and by default.

This crate primarily exports this ability through two extension traits, SslConnectorExt and SslAcceptorExt. These traits augment the functionality provided by the openssl crate, on which this crate is built. Configuration of TLS parameters is still primarily done through the openssl crate.

Structs

AcceptAsync

Future returned from SslAcceptorExt::accept_async which will resolve once the accept handshake has finished.

ConnectAsync

Future returned from SslConnectorExt::connect_async which will resolve once the connection handshake has finished.

SslStream

A wrapper around an underlying raw stream which implements the SSL protocol.

Traits

ConnectConfigurationExt

Extension trait for the ConnectConfiguration type in the openssl crate.

SslAcceptorExt

Extension trait for the SslAcceptor type in the openssl crate.

SslConnectorExt

Extension trait for the SslConnector type in the openssl crate.