From dfac9af1d96702f451b9d48ec7127455c3a1c560 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 30 Oct 2026 16:03:02 +0100 Subject: use rustls with ring for reqwest --- src/transport/mycelium/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/transport/mycelium/mod.rs b/src/transport/mycelium/mod.rs index 836eca9..10121bb 100644 --- a/src/transport/mycelium/mod.rs +++ b/src/transport/mycelium/mod.rs @@ -158,6 +158,9 @@ async fn admin_info(client: &reqwest::Client, url: Url) -> Result Result { let rest_url = setup.rest_url.clone(); + // reqwest's TLS has no crypto provider of its own (`Cargo.toml`): ring, for the + // whole process, unless one is installed already. + let _ = rustls::crypto::ring::default_provider().install_default(); let client = reqwest::Client::builder() .timeout(REQUEST_TIMEOUT) -- cgit v1.3.1