Skip to content

Commit

Permalink
Actually use configured crypto provider for the platform verifier
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Reidel <[email protected]>
  • Loading branch information
Gelbpunkt committed Dec 17, 2024
1 parent cbf6c96 commit 3f8dd60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ pub trait ConfigBuilderExt {
impl ConfigBuilderExt for ConfigBuilder<ClientConfig, WantsVerifier> {
#[cfg(feature = "rustls-platform-verifier")]
fn with_platform_verifier(self) -> ConfigBuilder<ClientConfig, WantsClientCert> {
let provider = self.crypto_provider().clone();
self.dangerous()
.with_custom_certificate_verifier(Arc::new(
rustls_platform_verifier::Verifier::default(),
rustls_platform_verifier::Verifier::new().with_provider(provider),
))
}

Expand Down

0 comments on commit 3f8dd60

Please sign in to comment.