Skip to content

Commit

Permalink
Merge pull request #298 from lightydo/master
Browse files Browse the repository at this point in the history
update rustls to fix RUSTSEC-2023-0053
  • Loading branch information
agalakhov authored Sep 8, 2023
2 parents 71d06d4 + 9be8881 commit e36abf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ version = "0.2.11"

[dependencies.rustls]
optional = true
version = "0.21.0"
version = "0.21.6"

[dependencies.rustls-native-certs]
optional = true
Expand All @@ -55,11 +55,11 @@ version = "0.3.1"

[dependencies.tokio-rustls]
optional = true
version = "0.24.0"
version = "0.24.1"

[dependencies.webpki-roots]
optional = true
version = "0.23.0"
version = "0.25.2"

[dev-dependencies]
futures-channel = "0.3.28"
Expand Down
4 changes: 2 additions & 2 deletions src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ mod encryption {
}
#[cfg(feature = "rustls-tls-webpki-roots")]
{
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| {
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
Expand Down

0 comments on commit e36abf8

Please sign in to comment.