fix: remove leftover
This commit is contained in:
parent
1dcb2ebef1
commit
7fc64c457a
16
src/cert.rs
16
src/cert.rs
@ -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())
|
||||
}
|
||||
}
|
@ -4,7 +4,6 @@ use rustls::{ServerConfig, ClientConfig, NoClientAuth};
|
||||
|
||||
mod command;
|
||||
mod proxy;
|
||||
mod cert;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
|
Loading…
Reference in New Issue
Block a user