Skip to content

Commit

Permalink
disable SSL via named pipes in the internal client
Browse files Browse the repository at this point in the history
because it doesn't work. CONC-635.
  • Loading branch information
vuvova committed Feb 4, 2024
1 parent 3c36ed1 commit 386df87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extra/mariabackup/backup_mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ xb_mysql_connect()
opt_socket ? opt_socket : "not set");

#ifdef HAVE_OPENSSL
if (opt_use_ssl && opt_protocol <= MYSQL_PROTOCOL_SOCKET)
if (opt_use_ssl)
{
mysql_ssl_set(connection, opt_ssl_key, opt_ssl_cert,
opt_ssl_ca, opt_ssl_capath,
Expand Down
6 changes: 6 additions & 0 deletions sql-common/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2052,6 +2052,12 @@ static int send_client_reply_packet(MCPVIO_EXT *mpvio,
if (mpvio->db)
mysql->client_flag|= CLIENT_CONNECT_WITH_DB;

if (mysql->net.vio->type == VIO_TYPE_NAMEDPIPE)
{
mysql->server_capabilities&= ~CLIENT_SSL;
mysql->options.use_ssl= 0;
}

/* Remove options that server doesn't support */
mysql->client_flag= mysql->client_flag &
(~(CLIENT_COMPRESS | CLIENT_SSL | CLIENT_PROTOCOL_41)
Expand Down

0 comments on commit 386df87

Please sign in to comment.