Skip to main content

install_default_rustls_provider

Function install_default_rustls_provider 

Source
pub fn install_default_rustls_provider()
Expand description

Installs default_provider as the process-default rustls [CryptoProvider].

This is the intended entry point when rustls (or reqwest) is compiled without a built-in cryptography provider, such as when using reqwest’s rustls-no-provider feature. Call it once before building any rustls configuration.

The call is safe to repeat and never panics: the provider is installed only on the first call, and if a provider is already installed as the process default, that provider is left untouched.