mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
BUG#25575605: SETTING --SSL-MODE=REQUIRED SENDS CREDENTIALS BEFORE VERIFYING SSL CONNECTION
MYSQL_OPT_SSL_MODE option introduced. It is set in case of --ssl-mode=REQUIRED and permits only SSL connection. (cherry picked from commit 3b2d28578c526f347f5cfe763681eff365731f99)
This commit is contained in:
committed by
Gipson Pulla
parent
19150f7e7a
commit
060b1eadf4
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -1501,7 +1501,7 @@ static int connect_to_db(char *host, char *user,char *passwd)
|
||||
if (!(mysql= mysql_connect_ssl_check(&mysql_connection, host, user,
|
||||
passwd, NULL, opt_mysql_port,
|
||||
opt_mysql_unix_port, 0,
|
||||
opt_ssl_required)))
|
||||
opt_ssl_mode == SSL_MODE_REQUIRED)))
|
||||
{
|
||||
DB_error(&mysql_connection, "when trying to connect");
|
||||
DBUG_RETURN(1);
|
||||
|
Reference in New Issue
Block a user