From f9c46455c19c92aaa6238215810cce6ad2a6f78d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 11 Aug 2024 17:57:36 +0200 Subject: initialize crypto in bot --- server/bot/Cargo.toml | 1 + server/bot/src/main.rs | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'server/bot') diff --git a/server/bot/Cargo.toml b/server/bot/Cargo.toml index bd8cbe36..e00855cd 100644 --- a/server/bot/Cargo.toml +++ b/server/bot/Cargo.toml @@ -9,3 +9,4 @@ hurrycurry-protocol = { path = "../protocol" } log = "0.4.22" anyhow = "1.0.86" env_logger = "0.11.5" +rustls = { version = "0.23.12", features = ["ring"] } diff --git a/server/bot/src/main.rs b/server/bot/src/main.rs index c07bfa92..ca5f8c92 100644 --- a/server/bot/src/main.rs +++ b/server/bot/src/main.rs @@ -39,6 +39,10 @@ pub trait BotAlgo { fn main() -> Result<()> { env_logger::init_from_env("LOG"); + rustls::crypto::ring::default_provider() + .install_default() + .unwrap(); + let mut network = Network::connect( &std::env::args() .nth(1) -- cgit v1.2.3-70-g09d2