tokio-tls
An implementation of TLS/SSL streams for Tokio built on top of the native-tls
crate
Usage
First, add this to your Cargo.toml
:
[]
= "0.2"
= "0.2"
Next, add this to your crate:
extern crate native_tls;
extern crate tokio_tls;
use ;
You can find few examples how to use this crate in examples directory (using TLS in hyper server or client).
By default the native-tls
crate currently uses the "platform appropriate"
backend for a TLS implementation. This means:
- On Windows, SChannel is used
- On OSX, SecureTransport is used
- Everywhere else, OpenSSL is used
Typically these selections mean that you don't have to worry about a portability when using TLS, these libraries are all normally installed by default.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.