fix: API in ::certs::insecure
This commit is contained in:
parent
dcd6359fcc
commit
a1ddbed7a9
1 changed files with 3 additions and 3 deletions
|
@ -5,11 +5,11 @@ use tokio_rustls::rustls::{
|
|||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct AllowAllCertVerifier(CryptoProvider);
|
||||
pub struct AllowAllCertVerifier(std::sync::Arc<CryptoProvider>);
|
||||
|
||||
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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue