From 79e5d24df896068e8ffd6adaa7719dc838da00b0 Mon Sep 17 00:00:00 2001 From: mxxntype <59417007+mxxntype@users.noreply.github.com> Date: Thu, 23 May 2024 06:07:41 +0300 Subject: [PATCH] fix(server): Enable the `streebog` feature by default --- .typos.toml | 2 ++ server/Cargo.toml | 2 +- server/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .typos.toml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..33d3eb5 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[default.extend-words] +GOST = "GOST" diff --git a/server/Cargo.toml b/server/Cargo.toml index ee92245..271bd96 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -35,7 +35,7 @@ uuid = { version = "1.8.0", features = ["v4"] } tonic-build = "0.11" [features] -# default = ["streebog"] +default = ["streebog"] streebog = ["dep:streebog", "dep:hex"] # `cargo-machete` reports this as unused, but it's absolutely used by `tonic` :) diff --git a/server/src/lib.rs b/server/src/lib.rs index efcfc35..33684a0 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -55,7 +55,7 @@ impl TCPChat { tracing::info!(message = "Starting server", ?addr); Server::builder() .tls_config(ServerTlsConfig::new().identity(identity)) - .unwrap() + .expect("The TLS key or certificate is invalid!") .trace_fn(|_| tracing::info_span!("server")) .add_service(registry) .add_service(chat)