mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
refactor: move from aws-lc to ring
This commit is contained in:
parent
c4766ceb99
commit
fe7ca0d700
4 changed files with 12 additions and 178 deletions
|
@ -77,7 +77,9 @@ uuid = { version = "1", default-features = false, features = ["v4"] }
|
|||
data-encoding = "2.9"
|
||||
flate2 = "1.1"
|
||||
protobuf-json-mapping = "3.7"
|
||||
rustls = { version = "0.23", features = ["aws-lc-rs"] }
|
||||
rustls = { version = "0.23", default-features = false, features = [
|
||||
"ring",
|
||||
] }
|
||||
|
||||
# Eventually, this should use rustls-platform-verifier to unify the platform-specific dependencies
|
||||
# but currently, hyper-proxy2 and tokio-tungstenite do not support it.
|
||||
|
@ -86,7 +88,7 @@ hyper-proxy2 = { version = "0.1", default-features = false, features = [
|
|||
"rustls",
|
||||
] }
|
||||
hyper-rustls = { version = "0.27", default-features = false, features = [
|
||||
"aws-lc-rs",
|
||||
"ring",
|
||||
"http1",
|
||||
"logging",
|
||||
"tls12",
|
||||
|
@ -102,7 +104,7 @@ hyper-proxy2 = { version = "0.1", default-features = false, features = [
|
|||
"rustls-webpki",
|
||||
] }
|
||||
hyper-rustls = { version = "0.27", default-features = false, features = [
|
||||
"aws-lc-rs",
|
||||
"ring",
|
||||
"http1",
|
||||
"logging",
|
||||
"tls12",
|
||||
|
|
|
@ -145,7 +145,7 @@ impl HttpClient {
|
|||
|
||||
fn try_create_hyper_client(proxy_url: Option<&Url>) -> Result<HyperClient, Error> {
|
||||
// configuring TLS is expensive and should be done once per process
|
||||
let _ = rustls::crypto::aws_lc_rs::default_provider()
|
||||
let _ = rustls::crypto::ring::default_provider()
|
||||
.install_default()
|
||||
.map_err(|e| {
|
||||
Error::internal(format!("unable to install default crypto provider: {e:?}"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue