Use aws-lc-rs as rust-tls provider (#35106)

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
Jonathan Schwender 2025-01-30 20:10:49 +01:00 committed by GitHub
parent 534e78db53
commit 764feada30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 124 additions and 26 deletions

View file

@ -67,7 +67,7 @@ getopts = { workspace = true }
hitrace = { workspace = true, optional = true }
mime_guess = { workspace = true }
url = { workspace = true }
rustls = { version = "0.23", default-features = false, features = ["ring"] }
rustls = { workspace = true, features = ["aws-lc-rs"] }
tokio = { workspace = true }
tracing = { workspace = true, optional = true }
tracing-subscriber = { workspace = true, optional = true, features = ["env-filter"] }

View file

@ -39,7 +39,7 @@ pub fn main() {
}
pub fn init_crypto() {
rustls::crypto::ring::default_provider()
rustls::crypto::aws_lc_rs::default_provider()
.install_default()
.expect("Error initializing crypto provider");
}