Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hippalus committed Aug 19, 2024
1 parent d4169eb commit faea717
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions umay/src/tls/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ impl Store {
let certified_key = Self::create_certified_key(server_cert, key, intermediates)?;
let resolver = Arc::new(CertResolver(certified_key));

let server_cert_verifier = WebPkiServerVerifier::builder(roots.clone()).build()?;
let client_cfg = Self::create_client_config(server_cert_verifier.clone(), resolver.clone())?;
let cert_verifier = WebPkiServerVerifier::builder(roots.clone()).build()?;
let client_cfg = Self::create_client_config(cert_verifier.clone(), resolver.clone())?;
let server_cfg = Self::create_server_config(&roots, resolver.clone())?;

Ok(Self {
server_cert_verifier,
server_cert_verifier: cert_verifier,
server_name,
client_cfg,
server_cfg,
Expand Down Expand Up @@ -115,9 +115,9 @@ impl Store {
let mut client_cfg = rustls::ClientConfig::builder()
.with_webpki_verifier(server_cert_verifier)
.with_client_cert_resolver(resolver);

client_cfg.resumption = Resumption::disabled();

Ok(Arc::new(client_cfg))
}

Expand Down

0 comments on commit faea717

Please sign in to comment.