diff --git a/Cargo.lock b/Cargo.lock index 7386382f..3711a7c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2312,7 +2312,6 @@ dependencies = [ "aws-lc-rs", "log", "once_cell", - "ring", "rustls-pki-types", "rustls-webpki", "subtle", diff --git a/Cargo.toml b/Cargo.toml index aa8c4be9..e468c9d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,7 @@ hyper = { version = "1.0", features = ["client", "http1", "http2"] } native-tls = { version = "0.2.11", features = ["alpn"], optional = true } tokio-native-tls = { version = "0.3.0", optional = true } -rustls = { version = "0.23.4", features = ["ring"], optional = true } +rustls = { version = "0.23.4", optional = true } rustls-native-certs = { version = "0.7.0", optional = true } tokio-rustls = { version = "0.26.0", optional = true } rustls-pki-types = { version = "1.3.0", optional = true } diff --git a/src/client.rs b/src/client.rs index 6397287b..2e1601a3 100644 --- a/src/client.rs +++ b/src/client.rs @@ -733,7 +733,8 @@ impl rustls::client::danger::ServerCertVerifier for AcceptAnyServerCert { } fn supported_verify_schemes(&self) -> Vec { - rustls::crypto::ring::default_provider() + rustls::crypto::CryptoProvider::get_default() + .unwrap() .signature_verification_algorithms .supported_schemes() } diff --git a/src/main.rs b/src/main.rs index 8e969591..b8aea0b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -446,14 +446,6 @@ async fn main() -> anyhow::Result<()> { client.pre_lookup().await?; } - #[cfg(feature = "rustls")] - { - // aws-lc-rs is a default provider for rustls. - rustls::crypto::aws_lc_rs::default_provider() - .install_default() - .unwrap(); - } - let start = std::time::Instant::now(); let data_collector = if opts.no_tui || !std::io::stdout().is_tty() {