Skip to content

Commit

Permalink
Fix build for updated webpki-roots
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbeam committed Sep 14, 2023
1 parent c5f620e commit 815971f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/tls/rustls_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Endpoint {
}

let mut root_store = RootCertStore::empty();
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
root_store.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
Expand Down Expand Up @@ -56,7 +56,7 @@ impl Endpoint {

let mut config = if let Some(identity) = ssl_opts.client_identity() {
let (cert_chain, priv_key) = identity.load()?;
config_builder.with_single_cert(cert_chain, priv_key)?
config_builder.with_client_auth_cert(cert_chain, priv_key)?
} else {
config_builder.with_no_client_auth()
};
Expand Down

0 comments on commit 815971f

Please sign in to comment.