From df7aac50092ba8d239a052315dd9aad59b14ef2e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 11 Jul 2024 17:36:53 +0200 Subject: replace openssl dep with rustls+ring --- server/replaytool/Cargo.toml | 5 ++++- server/replaytool/src/main.rs | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/replaytool/Cargo.toml b/server/replaytool/Cargo.toml index 036c464b..9d48392e 100644 --- a/server/replaytool/Cargo.toml +++ b/server/replaytool/Cargo.toml @@ -10,10 +10,13 @@ anyhow = "1.0.86" serde = { version = "1.0.204", features = ["derive"] } tokio = { version = "1.38.0", features = ["full"] } serde_json = "1.0.120" -tokio-tungstenite = { version = "0.23.1", features = ["native-tls"] } +tokio-tungstenite = { version = "0.23.1", features = [ + "rustls-tls-native-roots", +] } futures-util = "0.3.30" rand = "0.9.0-alpha.1" clap = { version = "4.5.8", features = ["derive"] } async-compression = { version = "0.4.11", features = ["zstd", "tokio"] } +rustls = { version = "0.23.10", features = ["ring"] } hurrycurry-protocol = { path = "../protocol" } diff --git a/server/replaytool/src/main.rs b/server/replaytool/src/main.rs index b591bf92..40466b82 100644 --- a/server/replaytool/src/main.rs +++ b/server/replaytool/src/main.rs @@ -61,6 +61,10 @@ async fn main() -> anyhow::Result<()> { .parse_env("LOG") .init(); + rustls::crypto::ring::default_provider() + .install_default() + .unwrap(); + let args = Args::parse(); match args { -- cgit v1.2.3-70-g09d2