Skip to main content

install_crypto_provider

Function install_crypto_provider 

Source
pub fn install_crypto_provider()
Expand description

Installs the process-level rustls ring CryptoProvider exactly once.

Both the ring and aws-lc-rs backends end up compiled in through the dependency tree; without a pinned default, rustls config builders panic on the ambiguity. Calling this more than once (from the data plane, admin, and the outbound client) is safe — install_default returning Err when a provider is already installed is a harmless no-op.