From a1ddbed7a9cb9cc5fc9eb472c981512a84b9409e Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 6 Aug 2024 11:08:35 +0400 Subject: [PATCH] fix: API in ::certs::insecure --- src/certs/insecure.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/certs/insecure.rs b/src/certs/insecure.rs index 754f1d6..f7d6c23 100644 --- a/src/certs/insecure.rs +++ b/src/certs/insecure.rs @@ -5,11 +5,11 @@ use tokio_rustls::rustls::{ }; #[derive(Debug)] -pub struct AllowAllCertVerifier(CryptoProvider); +pub struct AllowAllCertVerifier(std::sync::Arc); impl AllowAllCertVerifier { - fn yes_i_know_what_i_am_doing(provider: CryptoProvider) -> Self { - AllowAllCertVerifier(provider) + pub fn yes_i_know_what_i_am_doing() -> Self { + AllowAllCertVerifier(CryptoProvider::get_default().unwrap().clone()) } }