From d9525fa634add3eba264db5cb9acc95ce5a1653c Mon Sep 17 00:00:00 2001 From: Andrew Pan Date: Tue, 28 Nov 2023 15:16:35 -0600 Subject: [PATCH] treewide: bump webpki to `0.102.0-alpha.7` Signed-off-by: Andrew Pan --- Cargo.toml | 2 +- src/crypto/certificate_pool.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 393a9be973..fb6cee64da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -121,7 +121,7 @@ url = "2.2.2" x509-cert = { version = "0.2.2", features = ["builder", "pem", "std"] } crypto_secretbox = "0.1.1" zeroize = "1.5.7" -rustls-webpki = { version = "0.102.0-alpha.4", features = ["alloc"] } +rustls-webpki = { version = "0.102.0-alpha.7", features = ["alloc"] } rustls-pki-types = { version = "0.2.1", features = ["std"] } serde_repr = "0.1.16" hex = "0.4.3" diff --git a/src/crypto/certificate_pool.rs b/src/crypto/certificate_pool.rs index f7f702f804..0f8b247cd7 100644 --- a/src/crypto/certificate_pool.rs +++ b/src/crypto/certificate_pool.rs @@ -39,7 +39,7 @@ impl<'a> CertificatePool<'a> { Ok(CertificatePool { trusted_roots: trusted_roots .into_iter() - .map(|x| Ok(webpki::extract_trust_anchor(&x)?.to_owned())) + .map(|x| Ok(webpki::anchor_from_trusted_cert(&x)?.to_owned())) .collect::, webpki::Error>>()?, intermediates: untrusted_intermediates.into_iter().collect(), })