Skip to content

Commit 347eeaa

Browse files
committed
Set correctly tls struct (fix merge)
1 parent 7ffc133 commit 347eeaa

File tree

2 files changed

+4
-0
lines changed
  • sqlx-mysql/src/connection
  • sqlx-postgres/src/connection

2 files changed

+4
-0
lines changed

sqlx-mysql/src/connection/tls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ pub(super) async fn maybe_upgrade<S: Socket>(
6464
accept_invalid_hostnames: !matches!(options.ssl_mode, MySqlSslMode::VerifyIdentity),
6565
hostname: &options.host,
6666
root_cert_path: options.ssl_ca.as_ref(),
67+
client_cert_path: options.ssl_client_cert.as_ref(),
68+
client_key_path: options.ssl_client_key.as_ref(),
6769
};
6870

6971
// Request TLS upgrade

sqlx-postgres/src/connection/tls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ async fn maybe_upgrade<S: Socket>(
5858
accept_invalid_hostnames,
5959
hostname: &options.host,
6060
root_cert_path: options.ssl_root_cert.as_ref(),
61+
client_cert_path: options.ssl_client_cert.as_ref(),
62+
client_key_path: options.ssl_client_key.as_ref(),
6163
};
6264

6365
tls::handshake(socket, config, SocketIntoBox).await

0 commit comments

Comments
 (0)