Expand description
TLS services and I/O filters backed by OpenSSL.
SslAcceptor and SslConnector apply crate::TlsConfig to service
handshakes. The free accept() and connect() functions instead accept a
prepared OpenSSL session and apply neither timeout nor concurrency limiting.
Certificates, verification, protocol versions, and ALPN follow the supplied
OpenSSL configuration.
Filters expose native PeerCert and PeerCertChain values as well as
backend-independent DER certificates, SNI, PSK identity, TLS version, and
cipher metadata when available. ntex_io::types::HttpProtocol reports
HTTP/2 only for negotiated h2, otherwise HTTP/1.
Structs§
- Peer
Cert - The peer’s end-entity certificate as an owned OpenSSL reference.
- Peer
Cert Chain - The peer certificate chain with OpenSSL’s native chain semantics.
- SslAcceptor
- Upgrades existing I/O connections to server-side TLS using OpenSSL.
- SslConnector
- Opens a transport and upgrades it to client-side TLS using OpenSSL.
- SslFilter
- Encrypts and decrypts either side of an OpenSSL TLS connection.
Functions§
- accept
- Installs a TLS filter and completes a server handshake.
- connect
- Installs a TLS filter and completes a client handshake.
- set_
identity - Configures a fresh OpenSSL context with a portable identity and ordered intermediates.
- use_
global_ ⚠allocator - Routes OpenSSL memory allocations to the Rust global allocator.