pub trait BuilderVerifierExt {
// Required method
fn with_platform_verifier(
self,
) -> ConfigBuilder<ClientConfig, WantsClientCert>;
}
Expand description
Extension trait to help configure ClientConfig
s with the platform verifier.
Required Methods§
Sourcefn with_platform_verifier(self) -> ConfigBuilder<ClientConfig, WantsClientCert>
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();