Skip to content

Commit

Permalink
On Windows SSL works with sockets only, so we shouldn't tell the client
Browse files Browse the repository at this point in the history
that we support SSL when using named pipes or shared memory.
  • Loading branch information
9EOR9 authored and vaintroub committed Jan 27, 2016
1 parent ef3ca5c commit 33e5a8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sql/sql_acl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11260,13 +11260,16 @@ static bool send_server_handshake_packet(MPVIO_EXT *mpvio,
*end++= protocol_version;

thd->client_capabilities= CLIENT_BASIC_FLAGS;

if (opt_using_transactions)
thd->client_capabilities|= CLIENT_TRANSACTIONS;

thd->client_capabilities|= CAN_CLIENT_COMPRESS;

if (ssl_acceptor_fd)
/* Currently we support SSL with sockets only */
if (thd->active_vio->type != VIO_TYPE_NAMEDPIPE &&
thd->active_vio->type != VIO_TYPE_SHARED_MEMORY &&
ssl_acceptor_fd)
{
thd->client_capabilities |= CLIENT_SSL;
thd->client_capabilities |= CLIENT_SSL_VERIFY_SERVER_CERT;
Expand Down

0 comments on commit 33e5a8a

Please sign in to comment.