diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-04-16 19:58:14 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-04-16 19:58:14 -0700 |
| commit | 617ba1686743f562503c38eab736969fe69a12a7 (patch) | |
| tree | cc57d6867f8a68f79973939f7c5888690f514b46 | |
| parent | clippy should fail on warnings (diff) | |
| download | x-617ba1686743f562503c38eab736969fe69a12a7.tar.gz | |
use `add_trust_anchors`
```
error: use of deprecated method `rustls::RootCertStore::add_server_trust_anchors`: Please use `add_trust_anchors` instead
```
| -rw-r--r-- | src/x509-info/src/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x509-info/src/client.rs b/src/x509-info/src/client.rs index 8728f93..1eb7e09 100644 --- a/src/x509-info/src/client.rs +++ b/src/x509-info/src/client.rs @@ -41,7 +41,7 @@ pub fn get_certificates( .with_no_client_auth() } else { 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.0.iter().map(|ta| { OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, ta.spki, |
