compio-openssl
An asynchronous OpenSSL stream for compio.
Features
- Asynchronous support: Built on top of compio's asynchronous manner, async-based SSL/TLS communication.
- Compatibility: Maintain API compatibility with the original synchronous SslStream.
- Wide OpenSSL version support: Compatible with wide versions of OpenSSL just like the openssl crate dose.
*Note: to use TLS 1.3 early data, you need OpenSSL 1.1.1 at least.
Example
use TcpStream;
use ;
let mut builder = builder.unwrap;
let tls_connector = builder.build;
let stream = connect.await.unwrap;
let tls_ctx = tls_connector.configure.unwrap.into_ssl.unwrap;
let mut stream = new.unwrap;
stream.connect.await.unwrap;
// Now you get a full async TLS stream!
Fore more examples, see our test.
Vendored
To make OpenSSL static links to your binary, please use openssl's vendored feature.
[]
= { = "0.10", = ["vendored"] }
License
MIT License