aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-30 16:03:02 +0100
committertv <tv@krebsco.de>2026-10-30 16:03:02 +0100
commitdfac9af1d96702f451b9d48ec7127455c3a1c560 (patch)
treedc3ec812f9ae6b0c77f361cadd426f113f46b1e8 /src
parent055efc604d8cf56b2cdd05bbd863acb9c2ea12d6 (diff)
use rustls with ring for reqwest
Diffstat (limited to 'src')
-rw-r--r--src/transport/mycelium/mod.rs3
1 files changed, 3 insertions, 0 deletions
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<MyceliumAdminI
impl MyceliumTransport {
pub(crate) async fn connect(setup: MyceliumSetup) -> Result<Self> {
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)