upgrade to native-tls 0.2 + invalid certs (#325)

- Bumps `native-tls` dependency to 0.2 and adapt code accordingly
- Import code used from `tokio-tls` into `connect_async` and adapt dependencies accordinlgy
- Add an option for using `danger_accept_invalid_certs` inside the `Config` struct
This commit is contained in:
Yannick Heinrich
2018-08-08 22:14:36 +02:00
committed by Sean McArthur
parent a25f62f4cb
commit 11f8588989
7 changed files with 212 additions and 47 deletions

View File

@@ -145,8 +145,8 @@ extern crate serde_derive;
extern crate serde_json;
extern crate serde_urlencoded;
extern crate tokio;
#[macro_use]
extern crate tokio_io;
extern crate tokio_tls;
extern crate url;
extern crate uuid;
@@ -173,6 +173,7 @@ mod error;
mod async_impl;
mod connect;
mod connect_async;
mod body;
mod client;
mod into_url;