diff --git a/Cargo.toml b/Cargo.toml index 21f818b..4b42025 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hyper-rustls" -version = "0.27.3" +version = "0.27.4" edition = "2021" rust-version = "1.71" license = "Apache-2.0 OR ISC OR MIT" diff --git a/src/config.rs b/src/config.rs index 13de77d..2179d5b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -43,9 +43,10 @@ pub trait ConfigBuilderExt { impl ConfigBuilderExt for ConfigBuilder { #[cfg(feature = "rustls-platform-verifier")] fn with_platform_verifier(self) -> ConfigBuilder { + 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), )) }