Skip to content

Commit

Permalink
Changed deprecated method rustls::RootCertStore::add_server_trust_anc…
Browse files Browse the repository at this point in the history
…hors to add_trust_anchors
  • Loading branch information
barshaul committed Aug 3, 2023
1 parent bd7ad4c commit 2f71bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ impl ActualConnection {
pub(crate) fn create_rustls_config(insecure: bool) -> RedisResult<rustls::ClientConfig> {
let mut root_store = RootCertStore::empty();
#[cfg(feature = "tls-rustls-webpki-roots")]
root_store.add_server_trust_anchors(TLS_SERVER_ROOTS.0.iter().map(|ta| {
root_store.add_trust_anchors(TLS_SERVER_ROOTS.0.iter().map(|ta| {
OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
Expand Down

0 comments on commit 2f71bcd

Please sign in to comment.