rustls_platform_verifier

Function tls_config_with_provider

Source
pub fn tls_config_with_provider(
    provider: Arc<CryptoProvider>,
) -> Result<ClientConfig, Error>
๐Ÿ‘ŽDeprecated since 0.4.0: use the BuilderVerifierExt instead
Expand description

Attempts to construct a rustls configuration that verifies TLS certificates in the best way for the underlying OS platform, using the provided CryptoProvider.

See tls_config for further documentation.

ยงErrors

Propagates any error returned by rustls::ConfigBuilder::with_safe_default_protocol_versions.