aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-21 19:13:26 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-21 19:13:26 +0200
commitf2a61d6d60ba1d628ccc7ee3b591e5fdb601e59f (patch)
tree9b957a52d32923496f9e4013ccafa08628fa96b0 /server
parent22723935cea1d9e38df8402b332acbd7d27c8d44 (diff)
downloadhurrycurry-f2a61d6d60ba1d628ccc7ee3b591e5fdb601e59f.tar
hurrycurry-f2a61d6d60ba1d628ccc7ee3b591e5fdb601e59f.tar.bz2
hurrycurry-f2a61d6d60ba1d628ccc7ee3b591e5fdb601e59f.tar.zst
enable the "process level cryptoprovider" (TM) (TM)
Diffstat (limited to 'server')
-rw-r--r--server/registry/Cargo.toml1
-rw-r--r--server/registry/src/main.rs3
2 files changed, 4 insertions, 0 deletions
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())