fix: remove leftover

This commit is contained in:
Mahdi Dibaiee 2021-03-19 17:23:58 +00:00
parent 1dcb2ebef1
commit 7fc64c457a
2 changed files with 0 additions and 17 deletions

View File

@ -1,16 +0,0 @@
use rustls::{Certificate, RootCertStore, ServerCertVerified, ServerCertVerifier, TLSError};
use webpki;
pub struct NoCertificateVerification {}
impl ServerCertVerifier for NoCertificateVerification {
fn verify_server_cert(
&self,
_roots: &RootCertStore,
_presented_certs: &[Certificate],
_dns_name: webpki::DNSNameRef<'_>,
_ocsp_response: &[u8],
) -> Result<ServerCertVerified, TLSError> {
Ok(ServerCertVerified::assertion())
}
}

View File

@ -4,7 +4,6 @@ use rustls::{ServerConfig, ClientConfig, NoClientAuth};
mod command; mod command;
mod proxy; mod proxy;
mod cert;
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> { async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {