From 3b0c96712a7c1c4150a6d7defe9b504fbe5e41bd Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sun, 27 Aug 2017 18:13:08 -1000 Subject: [PATCH 1/2] 0.4.0: Use rustls 0.11, webpki-roots 0.13, and update other deps. --- Cargo.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 796d24f..c82a3d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tokio-rustls" -version = "0.3.1" +version = "0.4.0" authors = ["quininer kel "] license = "MIT/Apache-2.0" repository = "https://github.com/quininer/tokio-rustls" @@ -18,15 +18,15 @@ appveyor = { repository = "quininer/tokio-rustls" } danger = [ "rustls/dangerous_configuration" ] [dependencies] -futures = "0.1" -tokio-io = "0.1" -rustls = "0.10" -tokio-proto = { version = "0.1", optional = true } +futures = "0.1.15" +tokio-io = "0.1.3" +rustls = "0.11" +tokio-proto = { version = "0.1.1", optional = true } [dev-dependencies] -tokio-core = "0.1" -clap = "2.20" -webpki-roots = "0.12" +tokio-core = "0.1.9" +clap = "2.26" +webpki-roots = "0.13" [target.'cfg(unix)'.dev-dependencies] tokio-file-unix = "0.4" From 4b2b016024850ec8c671617c58711937a30894a6 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sun, 27 Aug 2017 18:53:47 -1000 Subject: [PATCH 2/2] Update examples for webpki-roots API changes. --- README.md | 2 +- examples/client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9612f64..d9db909 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ use tokio_rustls::ClientConfigExt; // ... let mut config = ClientConfig::new(); -config.root_store.add_trust_anchors(&webpki_roots::ROOTS); +config.root_store.add_server_trust_anchors(&webpki_roots::TLS_SERVER_ROOTS); let config = Arc::new(config); TcpStream::connect(&addr, &handle) diff --git a/examples/client.rs b/examples/client.rs index cfc5bca..4a737f6 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -64,7 +64,7 @@ fn main() { let mut pem = BufReader::new(fs::File::open(cafile).unwrap()); config.root_store.add_pem_file(&mut pem).unwrap(); } else { - config.root_store.add_trust_anchors(&webpki_roots::ROOTS); + config.root_store.add_server_trust_anchors(&webpki_roots::TLS_SERVER_ROOTS); } let arc_config = Arc::new(config);