From e4907d131bb117b1ff437ad29cf271adf07f5ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 19 Jun 2024 02:47:49 +0200 Subject: [PATCH] enable ring --- Cargo.lock | 1 + Cargo.toml | 2 +- examples/ssl_trace.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 3af7c99..f8e6645 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -776,6 +776,7 @@ dependencies = [ "aws-lc-rs", "log", "once_cell", + "ring", "rustls-pki-types", "rustls-webpki", "subtle", diff --git a/Cargo.toml b/Cargo.toml index a7a4ac5..f8194c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ trace = [] [dependencies] tokio = { version = "1", features = [ "io-util", "net", "rt", "sync" ] } -rustls = "0.23" +rustls = { version = "0.23", features = ["ring"] } futures = "0.3" socket2 = "0.5" diff --git a/examples/ssl_trace.rs b/examples/ssl_trace.rs index f2fbf34..5f584a2 100644 --- a/examples/ssl_trace.rs +++ b/examples/ssl_trace.rs @@ -52,6 +52,7 @@ impl ServerCertVerifier for UnsafeVerifier { pub async fn main() { #[cfg(feature = "trace")] rustls_tokio_stream::enable_byte_tracing(); + rustls::crypto::ring::default_provider().install_default().unwrap(); let mut args = env::args(); _ = args.next();