diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-11 17:36:53 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-11 17:36:53 +0200 |
commit | df7aac50092ba8d239a052315dd9aad59b14ef2e (patch) | |
tree | d5e0a44f8926dac833aa806d545b592702208d0f /server | |
parent | 5c722e926f04f7d81dcb235d11dda3eff1545f76 (diff) | |
download | hurrycurry-1.1.0.tar hurrycurry-1.1.0.tar.bz2 hurrycurry-1.1.0.tar.zst |
replace openssl dep with rustls+ringv1.1.0
Diffstat (limited to 'server')
-rw-r--r-- | server/replaytool/Cargo.toml | 5 | ||||
-rw-r--r-- | server/replaytool/src/main.rs | 4 |
2 files changed, 8 insertions, 1 deletions
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 { |