Merge pull request #205 from yusdacra/master

downgrade webpki, use rustls-native-certs instead of webpki-roots
pull/175/merge
Daniel Abramov 4 years ago committed by GitHub
commit 8c3172c014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Cargo.toml
  2. 2
      src/client.rs

@ -19,7 +19,7 @@ all-features = true
default = []
native-tls = ["native-tls-crate"]
native-tls-vendored = ["native-tls", "native-tls-crate/vendored"]
rustls-tls = ["rustls", "webpki", "webpki-roots"]
rustls-tls = ["rustls", "webpki", "rustls-native-certs"]
[dependencies]
base64 = "0.13.0"
@ -46,11 +46,11 @@ version = "0.19.0"
[dependencies.webpki]
optional = true
version = "0.22.0"
version = "0.21"
[dependencies.webpki-roots]
[dependencies.rustls-native-certs]
optional = true
version = "0.22.0"
version = "0.5.0"
[dev-dependencies]
env_logger = "0.8.1"

@ -72,7 +72,7 @@ mod encryption {
Mode::Tls => {
let config = {
let mut config = ClientConfig::new();
config.root_store.add_server_trust_anchors(&webpki_roots::TLS_SERVER_ROOTS);
config.root_store = rustls_native_certs::load_native_certs().map_err(|(_, err)| err)?;
Arc::new(config)
};

Loading…
Cancel
Save