Skip to content

Commit b0c07a2

Browse files
authored
Bump rustls to v0.21.6 (#1928)
* Bump rustls to 0.21.6 * Fix to use with_client_auth_cert
1 parent 99bbae6 commit b0c07a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ tokio-native-tls = { version = "0.3.0", optional = true }
119119

120120
# rustls-tls
121121
hyper-rustls = { version = "0.24.0", default-features = false, optional = true }
122-
rustls = { version = "0.21.0", features = ["dangerous_configuration"], optional = true }
122+
rustls = { version = "0.21.6", features = ["dangerous_configuration"], optional = true }
123123
tokio-rustls = { version = "0.24", optional = true }
124124
webpki-roots = { version = "0.25", optional = true }
125125
rustls-native-certs = { version = "0.6", optional = true }

src/tls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ impl Identity {
307307
) -> crate::Result<rustls::ClientConfig> {
308308
match self.inner {
309309
ClientCert::Pem { key, certs } => config_builder
310-
.with_single_cert(certs, key)
310+
.with_client_auth_cert(certs, key)
311311
.map_err(crate::error::builder),
312312
#[cfg(feature = "native-tls")]
313313
ClientCert::Pkcs12(..) | ClientCert::Pkcs8(..) => {

0 commit comments

Comments
 (0)