Skip to main content

Module openssl

Module openssl 

Source
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§

PeerCert
The peer’s end-entity certificate as an owned OpenSSL reference.
PeerCertChain
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.