File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,13 @@ futures-io = "0.3.5"
25
25
futures-core = " 0.3.5"
26
26
rustls = " 0.21"
27
27
rustls-pemfile = " 1.0"
28
- webpki = { version = " 0.22.0" , optional = true }
28
+ # webpki = { version = "0.22.0", optional = true }
29
+ rustls-webpki = { version = " 0.101.4" , optional = true }
29
30
webpki-roots = { version = " 0.22.3" , optional = true }
30
31
31
32
[features ]
32
33
default = [" client" , " server" ]
33
- client = [" webpki" , " webpki -roots" ]
34
+ client = [" webpki-roots" ]
34
35
early-data = []
35
36
server = []
36
37
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl From<ClientConfig> for TlsConnector {
65
65
impl Default for TlsConnector {
66
66
fn default ( ) -> Self {
67
67
let mut root_certs = RootCertStore :: empty ( ) ;
68
- root_certs. add_server_trust_anchors ( webpki_roots:: TLS_SERVER_ROOTS . 0 . iter ( ) . map ( |ta| {
68
+ root_certs. add_trust_anchors ( webpki_roots:: TLS_SERVER_ROOTS . 0 . iter ( ) . map ( |ta| {
69
69
OwnedTrustAnchor :: from_subject_spki_name_constraints (
70
70
ta. subject ,
71
71
ta. spki ,
You can’t perform that action at this time.
0 commit comments