[−][src]Crate opentls
TLS streams using OpenSSL.
This crate is meant for cases when it is important to use OpenSSL for the TLS implementation, allowing vendoring on platforms other than Linux. In many cases it is recommended to use the TLS facilities of the platform, and using either native-tls for sync or async-native-tls for async transport.
If system TLS cannot be used, this crate provides the same api as the crates mentioned above, but links always with OpenSSL.
Cargo Features
vendored
- If enabled, the crate will compile and statically link to a vendored copy of OpenSSL.io-tokio
- Enables asynchronous IO with Tokio runtime.io-async-std
- Enables asynchronous IO with async-std runtime.
Modules
async_io | io-tokio or io-async-std Async TLS streams with OpenSSL. |
sync_io | A synchronous TLS implementation using OpenSSL. |
Structs
Certificate | An X509 certificate. |
Identity | A cryptographic identity. |
Enums
Error | An error returned from the TLS implementation. |
HandshakeError | An error returned from |
Protocol | SSL/TLS protocol versions. |
Type Definitions
Result | A typedef of the result-type returned by many methods. |