Browse Source
BUG#25575605: SETTING --SSL-MODE=REQUIRED SENDS CREDENTIALS BEFORE VERIFYING SSL CONNECTION
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 3b2d28578c
)
pull/45/merge
committed by
Gipson Pulla
18 changed files with 134 additions and 55 deletions
-
34client/client_priv.h
-
6client/mysql.cc
-
6client/mysql_upgrade.c
-
6client/mysqladmin.cc
-
4client/mysqlcheck.c
-
4client/mysqldump.c
-
4client/mysqlimport.c
-
4client/mysqlshow.c
-
5client/mysqlslap.c
-
6client/mysqltest.cc
-
9include/mysql.h
-
6include/mysql.h.pp
-
3include/sql_common.h
-
4include/sslopt-case.h
-
6include/sslopt-vars.h
-
6mysql-test/r/ssl_mode.result
-
22mysql-test/r/ssl_mode_no_ssl.result
-
54sql-common/client.c
@ -1,22 +1,22 @@ |
|||
# negative client tests |
|||
# mysql |
|||
ERROR 2026 (HY000): --ssl-mode=REQUIRED option forbids non SSL connections |
|||
ERROR 2026 (HY000): --ssl-mode=REQUIRED option forbids non SSL connections |
|||
ERROR 2026 (HY000): --ssl-mode=REQUIRED option forbids non SSL connections |
|||
ERROR 2026 (HY000): --ssl-mode=REQUIRED option forbids non SSL connections |
|||
ERROR 2026 (HY000): SSL connection error: Server doesn't support SSL |
|||
ERROR 2026 (HY000): SSL connection error: Server doesn't support SSL |
|||
ERROR 2026 (HY000): SSL connection error: Server doesn't support SSL |
|||
ERROR 2026 (HY000): SSL connection error: Server doesn't support SSL |
|||
# mysqldump |
|||
mysqldump: Got error: 2026: --ssl-mode=REQUIRED option forbids non SSL connections when trying to connect |
|||
mysqldump: Got error: 2026: SSL connection error: Server doesn't support SSL when trying to connect |
|||
# mysqladmin |
|||
mysqladmin: error: '--ssl-mode=REQUIRED option forbids non SSL connections' |
|||
mysqladmin: error: 'SSL connection error: Server doesn't support SSL' |
|||
# mysqlcheck |
|||
mysqlcheck: Got error: 2026: --ssl-mode=REQUIRED option forbids non SSL connections when trying to connect |
|||
mysqlcheck: Got error: 2026: SSL connection error: Server doesn't support SSL when trying to connect |
|||
# mysqlimport |
|||
mysqlimport: Error: 2026 --ssl-mode=REQUIRED option forbids non SSL connections |
|||
mysqlimport: Error: 2026 SSL connection error: Server doesn't support SSL |
|||
# mysqlshow |
|||
mysqlshow: --ssl-mode=REQUIRED option forbids non SSL connections |
|||
mysqlshow: SSL connection error: Server doesn't support SSL |
|||
# mysqlslap |
|||
mysqlslap: Error when connecting to server: --ssl-mode=REQUIRED option forbids non SSL connections |
|||
mysqlslap: Error when connecting to server: SSL connection error: Server doesn't support SSL |
|||
# mysqltest |
|||
mysqltest: Could not open connection 'default': 2026 --ssl-mode=REQUIRED option forbids non SSL connections |
|||
mysqltest: Could not open connection 'default': 2026 SSL connection error: Server doesn't support SSL |
|||
|
|||
End of tests |
Write
Preview
Loading…
Cancel
Save
Reference in new issue