chore(transport): Upgrade rustls and base64 (#251)
This commit is contained in:
+3
-3
@@ -47,7 +47,7 @@ futures-core = { version = "0.3", default-features = false }
|
||||
futures-util = { version = "0.3", default-features = false }
|
||||
tracing = "0.1"
|
||||
http = "0.2"
|
||||
base64 = "0.10"
|
||||
base64 = "0.11"
|
||||
|
||||
percent-encoding = "2.0"
|
||||
tower-service = "0.3"
|
||||
@@ -73,8 +73,8 @@ tower-load = { version = "0.3", optional = true }
|
||||
tracing-futures = { version = "0.2", optional = true }
|
||||
|
||||
# rustls
|
||||
tokio-rustls = { version = "0.12", optional = true }
|
||||
rustls-native-certs = { version = "0.1", optional = true }
|
||||
tokio-rustls = { version = "0.13", optional = true }
|
||||
rustls-native-certs = { version = "0.3", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "0.2", features = ["rt-core", "macros"] }
|
||||
|
||||
@@ -50,12 +50,12 @@ impl TlsConnector {
|
||||
|
||||
if let Some(identity) = identity {
|
||||
let (client_cert, client_key) = rustls_keys::load_identity(identity)?;
|
||||
config.set_single_client_cert(client_cert, client_key);
|
||||
config.set_single_client_cert(client_cert, client_key)?;
|
||||
}
|
||||
|
||||
#[cfg(feature = "tls-roots")]
|
||||
{
|
||||
config.root_store = rustls_native_certs::load_native_certs()?;
|
||||
config.root_store = rustls_native_certs::load_native_certs().map_err(|(_, e)| e)?;
|
||||
}
|
||||
|
||||
if let Some(cert) = ca_cert {
|
||||
|
||||
Reference in New Issue
Block a user