mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
22 lines
930 B
Plaintext
22 lines
930 B
Plaintext
-- source include/no_view_protocol.inc
|
|
-- source include/have_ssl_communication.inc
|
|
SET GLOBAL require_secure_transport=ON;
|
|
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
|
|
--error ER_SECURE_TRANSPORT_REQUIRED
|
|
connect without_ssl,localhost,root,,,,,TCP NOSSL;
|
|
|
|
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
|
|
connect with_ssl,localhost,root,,,,,TCP SSL;
|
|
--disable_view_protocol
|
|
SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
|
|
--enable_view_protocol
|
|
disconnect with_ssl;
|
|
|
|
connection default;
|
|
SET GLOBAL require_secure_transport=OFF;
|
|
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
|
|
connect without_ssl,localhost,root,,,,,TCP NOSSL;
|
|
SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
|
|
disconnect without_ssl;
|
|
connection default;
|