#tls-stream #native-tls #io-stream #tokio #async-tls #tls-connector #tls-acceptor

tokio-tls-gmssl

An implementation of TLS/SSL streams for Tokio using native-tls giving an implementation of TLS for nonblocking I/O streams

1 unstable release

0.1.0 Apr 16, 2023

#1717 in Asynchronous

MIT license

22KB
326 lines

tokio-tls-gmssl

github actions crates license docs.rs

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

~2–12MB
~136K SLoC