From 8e7fd7d1a86bbeb3fc76c88c7ea4713a717bf3ea Mon Sep 17 00:00:00 2001 From: nworbnhoj Date: Thu, 15 Feb 2024 10:42:32 +1000 Subject: [PATCH] relocate ServerCertVerifier --- libs/tls/src/danger.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/tls/src/danger.rs b/libs/tls/src/danger.rs index f04c6b6f0..99476ed62 100644 --- a/libs/tls/src/danger.rs +++ b/libs/tls/src/danger.rs @@ -1,7 +1,7 @@ use locales::t; use modals::Modals; use rustls::client::WebPkiServerVerifier; -use rustls::client::danger::ServerCertVerified; +use rustls::client::danger::{ServerCertVerified, ServerCertVerifier}; use rustls::pki_types::{CertificateDer, ServerName, UnixTime}; use rustls::{CertificateError, Error, RootCertStore}; use xous_names::XousNames; @@ -10,7 +10,7 @@ pub struct StifledCertificateVerification { pub roots: RootCertStore, } -impl rustls::client::ServerCertVerifier for StifledCertificateVerification { +impl ServerCertVerifier for StifledCertificateVerification { /// Will verify the certificate with the default rustls WebPkiVerifier, /// BUT specifically overrides a `CertificateError::UnknownIssuer` and /// return ServerCertVerified::assertion()