mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
remove disable cert verification because it panics
This commit is contained in:
parent
55e1ef92bf
commit
f0293c53f1
4 changed files with 19 additions and 91 deletions
|
@ -87,18 +87,9 @@ impl StreamProvider {
|
|||
}
|
||||
}
|
||||
|
||||
let client_config = if options.disable_certificate_validation {
|
||||
ClientConfig::builder()
|
||||
.dangerous()
|
||||
.with_custom_certificate_verifier(Arc::new(NoCertificateVerification(
|
||||
default_provider(),
|
||||
)))
|
||||
.with_no_client_auth()
|
||||
} else {
|
||||
ClientConfig::builder()
|
||||
.with_root_certificates(certstore)
|
||||
.with_no_client_auth()
|
||||
};
|
||||
let client_config = ClientConfig::builder()
|
||||
.with_root_certificates(certstore)
|
||||
.with_no_client_auth();
|
||||
let client_config = Arc::new(client_config);
|
||||
|
||||
Ok(Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue