Fix not compiling features rustls-tls-native-roots and rustls-tls-webpki-roots
This commit is contained in:
parent
92d65e1104
commit
1f6c62d301
|
@ -55,6 +55,7 @@ version = "0.6.0"
|
|||
[dependencies.webpki]
|
||||
optional = true
|
||||
version = "0.22"
|
||||
features = ["std"]
|
||||
|
||||
[dependencies.webpki-roots]
|
||||
optional = true
|
||||
|
|
|
@ -107,7 +107,7 @@ mod encryption {
|
|||
for cert in rustls_native_certs::load_native_certs()? {
|
||||
root_store
|
||||
.add(&rustls::Certificate(cert.0))
|
||||
.map_err(TlsError::Webpki)?;
|
||||
.map_err(TlsError::Rustls)?;
|
||||
}
|
||||
}
|
||||
#[cfg(feature = "rustls-tls-webpki-roots")]
|
||||
|
|
Loading…
Reference in New Issue