diff options
| author | tv <tv@krebsco.de> | 2026-10-30 16:03:02 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-30 16:03:02 +0100 |
| commit | dfac9af1d96702f451b9d48ec7127455c3a1c560 (patch) | |
| tree | dc3ec812f9ae6b0c77f361cadd426f113f46b1e8 /src/transport/mycelium/mod.rs | |
| parent | 055efc604d8cf56b2cdd05bbd863acb9c2ea12d6 (diff) | |
use rustls with ring for reqwest
Diffstat (limited to 'src/transport/mycelium/mod.rs')
| -rw-r--r-- | src/transport/mycelium/mod.rs | 3 |
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) |
