File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ serde_json = { version = "^1.0" }
26
26
# Optional dependencies
27
27
openssl = { version = " 0.10" , optional = true }
28
28
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 }
31
30
32
31
byteorder = { version = " 1.0" , optional = true }
33
32
@@ -42,5 +41,5 @@ default = ["proxy", "use-rustls"]
42
41
minimal = []
43
42
debug-calls = []
44
43
proxy = [" byteorder" , " winapi" , " libc" ]
45
- use-rustls = [" webpki" , " webpki -roots" , " rustls" ]
44
+ use-rustls = [" webpki-roots" , " rustls" ]
46
45
use-openssl = [" openssl" ]
Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ extern crate rustls;
33
33
extern crate serde;
34
34
extern crate serde_json;
35
35
36
- #[ cfg( any( feature = "use-rustls" , feature = "default" ) ) ]
37
- extern crate webpki;
38
36
#[ cfg( any( feature = "use-rustls" , feature = "default" ) ) ]
39
37
extern crate webpki_roots;
40
38
Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ impl RawClient<ElectrumSslStream> {
365
365
socket_addr. domain ( ) . ok_or ( Error :: MissingDomain ) ?;
366
366
367
367
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| {
369
369
OwnedTrustAnchor :: from_subject_spki_name_constraints (
370
370
t. subject ,
371
371
t. spki ,
You can’t perform that action at this time.
0 commit comments