Fix deprecation warning, massage connection verifier function somewhat
This commit is contained in:
parent
317672991e
commit
ca942d6e3e
2 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ impl<S: FingerPrintStore> ClientCertVerifier for Verifier<S> {
|
|||
return Err(rustls::Error::InvalidCertificate(
|
||||
rustls::CertificateError::NotValidForName,
|
||||
));
|
||||
} else {
|
||||
return Ok(ClientCertVerified::assertion());
|
||||
}
|
||||
} else {
|
||||
}
|
||||
}
|
||||
todo!()
|
||||
|
|
|
@ -75,7 +75,7 @@ where
|
|||
let rustls_cert = rustls::Certificate(c.der);
|
||||
let cert_chain = vec![rustls_cert];
|
||||
let key_der = rustls::PrivateKey(c.key);
|
||||
cfg.with_single_cert(cert_chain, key_der)?
|
||||
cfg.with_client_auth_cert(cert_chain, key_der)?
|
||||
}
|
||||
};
|
||||
let client = ClientConnection::new(Arc::new(cfg), dnsname)?;
|
||||
|
|
Loading…
Add table
Reference in a new issue