1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

fix: install default crypto provider

This commit is contained in:
Roderick van Domburg 2025-08-13 16:44:22 +02:00
parent 6288e7e03c
commit 1dcd041070
No known key found for this signature in database
GPG key ID: 607FA06CB5236AE0
3 changed files with 8 additions and 1 deletions

View file

@ -145,6 +145,11 @@ 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()
.install_default()
.map_err(|e| {
Error::internal(format!("unable to install default crypto provider: {e:?}"))
});
// On supported platforms, use native roots
#[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))]