Skip to main content

Module tls

Module tls 

Source
Expand description

TLS settings + helpers.

The actual handshake plugs into the TcpTransport through the TlsConfig shape; that wiring lands once the reader/writer split (5.D) is in.

For now we ship the typed configuration + a lightweight helper to load PEM-encoded cert/key pairs into the form rustls expects. Both feature-gated bits are deferred to keep the slim build dep-free.

Structs§

TlsConfig
TLS configuration knobs surfaced on RemoteSettings.

Enums§

TlsError

Functions§

parse_pem_blocks
Best-effort PEM block extraction. Returns the DER bytes of every block whose header matches expected_label (e.g. “CERTIFICATE”, “PRIVATE KEY”). Used as a base for the eventual rustls integration without taking the dep here.