From f2a61d6d60ba1d628ccc7ee3b591e5fdb601e59f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 21 Sep 2024 19:13:26 +0200 Subject: enable the "process level cryptoprovider" (TM) (TM) --- server/registry/Cargo.toml | 1 + server/registry/src/main.rs | 3 +++ 2 files changed, 4 insertions(+) (limited to 'server') diff --git a/server/registry/Cargo.toml b/server/registry/Cargo.toml index 2eeebb30..c616174f 100644 --- a/server/registry/Cargo.toml +++ b/server/registry/Cargo.toml @@ -15,6 +15,7 @@ serde = { version = "1.0.210", features = ["derive"] } tokio-tungstenite = { version = "0.23.1", features = [ "rustls-tls-native-roots", ] } +rustls = { version = "0.23.12", features = ["ring"] } hurrycurry-protocol = { path = "../protocol" } hurrycurry-client-lib = { path = "../client-lib" } diff --git a/server/registry/src/main.rs b/server/registry/src/main.rs index 2e0b7656..22f1bc0d 100644 --- a/server/registry/src/main.rs +++ b/server/registry/src/main.rs @@ -43,6 +43,9 @@ const MAX_SERVERS: usize = 128; fn main() { env_logger::init_from_env("LOG"); + rustls::crypto::ring::default_provider() + .install_default() + .unwrap(); let address = var("BIND_ADDR") .map(|a| IpAddr::from_str(&a).unwrap()) -- cgit v1.2.3-70-g09d2