From 617949ad46a30edc2fde2c106803e53de19ad2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Mon, 23 Sep 2024 17:19:39 +0200 Subject: [PATCH] Fix rustls deprecation warning --- crates/libtiny_client/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/libtiny_client/src/stream.rs b/crates/libtiny_client/src/stream.rs index 844a1bf1..d65118d8 100644 --- a/crates/libtiny_client/src/stream.rs +++ b/crates/libtiny_client/src/stream.rs @@ -66,7 +66,7 @@ fn tls_connector(sasl: Option<&Vec>) -> tokio_rustls::TlsConnector { .expect("Cert PEM must have at least one private key"); builder - .with_single_cert(vec![Certificate(cert)], PrivateKey(key)) + .with_client_auth_cert(vec![Certificate(cert)], PrivateKey(key)) .expect("Client auth cert") } else { builder.with_no_client_auth()