rustls_platform_verifier

Trait BuilderVerifierExt

Source
pub trait BuilderVerifierExt {
    // Required method
    fn with_platform_verifier(
        self,
    ) -> ConfigBuilder<ClientConfig, WantsClientCert>;
}
Expand description

Extension trait to help configure ClientConfigs with the platform verifier.

Required Methods§

Source

fn with_platform_verifier(self) -> ConfigBuilder<ClientConfig, WantsClientCert>

Configures the ClientConfig with the platform verifier.

use rustls::ClientConfig;
use rustls_platform_verifier::BuilderVerifierExt;
let config = ClientConfig::builder()
    .with_platform_verifier()
    .with_no_client_auth();

Implementations on Foreign Types§

Source§

impl BuilderVerifierExt for ConfigBuilder<ClientConfig, WantsVerifier>

Implementors§