File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 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"
2525futures-core = " 0.3.5"
2626rustls = " 0.21"
2727rustls-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 }
2930webpki-roots = { version = " 0.22.3" , optional = true }
3031
3132[features ]
3233default = [" client" , " server" ]
33- client = [" webpki" , " webpki -roots" ]
34+ client = [" webpki-roots" ]
3435early-data = []
3536server = []
3637
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl From<ClientConfig> for TlsConnector {
6565impl Default for TlsConnector {
6666 fn default ( ) -> Self {
6767 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| {
6969 OwnedTrustAnchor :: from_subject_spki_name_constraints (
7070 ta. subject ,
7171 ta. spki ,
You can’t perform that action at this time.
0 commit comments