File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ rust-version = "1.76"
17
17
[features ]
18
18
default = []
19
19
tls = [" rustls" , " rustls-pemfile" , " futures-rustls" ]
20
- tls-mozilla-roots = [" tls" , " webpki-roots" ]
21
20
sasl = [" sasl-gssapi" , " sasl-digest-md5" ]
22
21
sasl-digest-md5 = [" rsasl/unstable_custom_mechanism" , " md5" , " linkme" , " hex" ]
23
22
sasl-gssapi = [" rsasl/gssapi" ]
@@ -40,7 +39,6 @@ either = "1.9.0"
40
39
uuid = { version = " 1.4.1" , features = [" v4" ] }
41
40
rustls = { version = " 0.23.2" , optional = true }
42
41
rustls-pemfile = { version = " 2" , optional = true }
43
- webpki-roots = { version = " 1.0.1" , optional = true }
44
42
derive-where = " 1.2.7"
45
43
fastrand = " 2.0.2"
46
44
tracing = " 0.1.40"
Original file line number Diff line number Diff line change @@ -107,15 +107,6 @@ impl TlsOptions {
107
107
Self { ca_certs : RootCertStore :: empty ( ) , identity : None , hostname_verification : true }
108
108
}
109
109
110
- /// Trusts root certificates trusted by Mozilla.
111
- ///
112
- /// See [webpki-roots](https://docs.rs/webpki-roots) for more.
113
- #[ cfg( feature = "tls-mozilla-roots" ) ]
114
- pub fn with_mozilla_roots ( mut self ) -> Self {
115
- self . ca_certs . extend ( webpki_roots:: TLS_SERVER_ROOTS . iter ( ) . cloned ( ) ) ;
116
- self
117
- }
118
-
119
110
/// Disables hostname verification in tls handshake.
120
111
///
121
112
/// # Safety
You can’t perform that action at this time.
0 commit comments