Skip to main content

Module tls

Module tls 

Source
Expand description

TLS / crypto provider initialization helpers.

Rustls 0.23+ requires selecting a process-level CryptoProvider before performing TLS operations. In binaries this is typically done at startup, but our unit tests exercise code paths that create HTTPS clients directly.

This module provides a single, idempotent initializer.

Functionsยง

ensure_rustls_crypto_provider
Ensure the rustls crypto provider is installed.