pub fn install_http_tls_policy(policy: PostQuantumTlsPolicy) -> Result<()>Expand description
Install the process-wide Rustls policy before creating outbound clients.
reqwest uses CryptoProvider::get_default() when one is installed and
otherwise falls back to ring, which has no ML-KEM support. aws-lc-rs
offers the X25519MLKEM768 hybrid exchange. Require filters the provider to
that key exchange and TLS 1.3 AES-256-GCM; its lack of a TLS 1.2-capable key
exchange prevents a classical protocol downgrade.
The process-wide Rustls provider cannot be replaced after installation. Changing the configured policy therefore requires restarting the process.