grant select on test.* to ssl_user1@localhost require SSL;
grant select on test.* to ssl_user1@localhost require SSL;
grant select on test.* to ssl_user2@localhost require cipher "AES256-SHA";
grant select on test.* to ssl_user3@localhost require SUBJECT "/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB/CN=client";
grant select on test.* to ssl_user3@localhost require cipher "AES256-SHA" AND SUBJECT "/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB/CN=client";
grant select on test.* to ssl_user4@localhost require SUBJECT "/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB/CN=client" ISSUER "/CN=cacert/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB";
grant select on test.* to ssl_user4@localhost require cipher "AES256-SHA" AND SUBJECT "/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB/CN=client" ISSUER "/CN=cacert/C=FI/ST=Helsinki/L=Helsinki/O=MariaDB";
grant select on test.* to ssl_user5@localhost require SUBJECT "xxx";
grant select on test.* to ssl_user5@localhost require cipher "AES256-SHA" AND SUBJECT "xxx";
# Bug#25309 SSL connections without CA certificate broken since MySQL 5.0.23
# Bug#25309 SSL connections without CA certificate broken since MySQL 5.0.23
#
#
...
@@ -138,7 +117,7 @@ drop table t1;
...
@@ -138,7 +117,7 @@ drop table t1;
# verification of servers certificate by setting both ca certificate
# verification of servers certificate by setting both ca certificate
# and ca path to NULL
# and ca path to NULL
#
#
--exec$MYSQL--ssl--ssl-key=$MYSQL_TEST_DIR/std_data/client-key.pem--ssl-cert=$MYSQL_TEST_DIR/std_data/client-cert.pem-e"SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher'"2>&1
--exec$MYSQL--ssl--ssl-key=$MYSQL_TEST_DIR/std_data/client-key.pem--ssl-cert=$MYSQL_TEST_DIR/std_data/client-cert.pem-e"SELECT VARIABLE_VALUE <> '' AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher'"2>&1
--echoEndof5.0tests
--echoEndof5.0tests
#
#
...
@@ -179,25 +158,6 @@ SELECT variable_name, variable_value FROM thread_status;
...
@@ -179,25 +158,6 @@ SELECT variable_name, variable_value FROM thread_status;
DROPTABLEthread_status;
DROPTABLEthread_status;
SETGLOBALevent_scheduler=0;
SETGLOBALevent_scheduler=0;
#
# Test to connect using a list of ciphers
#
--exececho"SHOW STATUS LIKE 'Ssl_cipher'; exit;">$MYSQLTEST_VARDIR/tmp/test.sql