Skip to content

Commit a331ae8

Browse files
committed
Remove webpki and bump webpki-roots to v0.25
1 parent 5ecb26f commit a331ae8

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ serde_json = { version = "^1.0" }
2626
# Optional dependencies
2727
openssl = { version = "0.10", optional = true }
2828
rustls = { version = "0.21", optional = true, features = ["dangerous_configuration"] }
29-
webpki = { version = "0.22", optional = true }
30-
webpki-roots = { version = "0.22", optional = true }
29+
webpki-roots = { version = "0.25", optional = true }
3130

3231
byteorder = { version = "1.0", optional = true }
3332

@@ -42,5 +41,5 @@ default = ["proxy", "use-rustls"]
4241
minimal = []
4342
debug-calls = []
4443
proxy = ["byteorder", "winapi", "libc"]
45-
use-rustls = ["webpki", "webpki-roots", "rustls"]
44+
use-rustls = ["webpki-roots", "rustls"]
4645
use-openssl = ["openssl"]

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ extern crate rustls;
3333
extern crate serde;
3434
extern crate serde_json;
3535

36-
#[cfg(any(feature = "use-rustls", feature = "default"))]
37-
extern crate webpki;
3836
#[cfg(any(feature = "use-rustls", feature = "default"))]
3937
extern crate webpki_roots;
4038

src/raw_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ impl RawClient<ElectrumSslStream> {
365365
socket_addr.domain().ok_or(Error::MissingDomain)?;
366366

367367
let mut store = RootCertStore::empty();
368-
store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.into_iter().map(|t| {
368+
store.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.into_iter().map(|t| {
369369
OwnedTrustAnchor::from_subject_spki_name_constraints(
370370
t.subject,
371371
t.spki,

0 commit comments

Comments
 (0)