Skip to content

Commit

Permalink
no ring
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Apr 6, 2024
1 parent 035b57b commit ae3258c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 2 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,8 @@ impl rustls::client::danger::ServerCertVerifier for AcceptAnyServerCert {
}

fn supported_verify_schemes(&self) -> Vec<rustls::SignatureScheme> {
rustls::crypto::ring::default_provider()
rustls::crypto::CryptoProvider::get_default()
.unwrap()
.signature_verification_algorithms
.supported_schemes()
}
Expand Down
8 changes: 0 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ae3258c

Please sign in to comment.