Skip to content

Commit

Permalink
Fix rustls deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Sep 23, 2024
1 parent a0f3798 commit 617949a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libtiny_client/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn tls_connector(sasl: Option<&Vec<u8>>) -> tokio_rustls::TlsConnector {
.expect("Cert PEM must have at least one private key");

builder
.with_single_cert(vec![Certificate(cert)], PrivateKey(key))
.with_client_auth_cert(vec![Certificate(cert)], PrivateKey(key))
.expect("Client auth cert")
} else {
builder.with_no_client_auth()
Expand Down

0 comments on commit 617949a

Please sign in to comment.