You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in src/verification/windows.rs there is a check to ensure that the default CryptoProvider must be used.
Enabling custom crypto providers will allow users who want to opt out of using the rustls the ability to configure platform verifier with their own crypto provider.
impl Verifier {
/// Creates a new instance of a TLS certificate verifier that utilizes the
/// Windows certificate facilities. The rustls default [`CryptoProvider`]
/// must be set before the verifier can be used.
pub fn new() -> Self {
Self {
#[cfg(any(test, feature = "ffi-testing", feature = "dbg"))]
test_only_root_ca_override: None,
default_provider: OnceCell::new(),
}
}
in
src/verification/windows.rs
there is a check to ensure that the defaultCryptoProvider
must be used.Enabling custom crypto providers will allow users who want to opt out of using the
rustls
the ability to configure platform verifier with their own crypto provider.From 'windows.rs` on line 427
and also line 448
My suggestion: allow passing in a
CryptoProvider
to theVerifier
, and default to therustls
default if noCryptoProvider
is supplied.The text was updated successfully, but these errors were encountered: