12 releases

✓ Uses Rust 2018 edition

0.3.0-alpha.6 Oct 1, 2019
0.3.0-alpha.4 Aug 30, 2019
0.2.1 Jan 7, 2019
0.2.0 Aug 8, 2018
0.1.0 Dec 21, 2016

#23 in Network programming

Download history 8519/week @ 2019-06-18 9449/week @ 2019-06-25 7871/week @ 2019-07-02 9496/week @ 2019-07-09 8399/week @ 2019-07-16 8279/week @ 2019-07-23 12106/week @ 2019-07-30 10618/week @ 2019-08-06 10657/week @ 2019-08-13 8688/week @ 2019-08-20 8195/week @ 2019-08-27 7623/week @ 2019-09-03 8120/week @ 2019-09-10 8066/week @ 2019-09-17 9943/week @ 2019-09-24

38,297 downloads per month
Used in 408 crates (62 directly)

MIT license

88KB
2K SLoC

tokio-tls

An implementation of TLS/SSL streams for Tokio built on top of the [native-tls crate]

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.


lib.rs:

Async TLS streams

This library is an implementation of TLS streams using the most appropriate system library by default for negotiating the connection. That is, on Windows this library uses SChannel, on OSX it uses SecureTransport, and on other platforms it uses OpenSSL.

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 newtypes, TlsConnector and TlsAcceptor. These newtypes augment the functionality provided by the native-tls crate, on which this crate is built. Configuration of TLS parameters is still primarily done through the native-tls crate.

Dependencies

~0.7–1.4MB
~25K SLoC