diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-06-09 22:11:22 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-06-09 22:16:26 +0200 |
commit | 5a44e1a4024f1760021e5c6fd65773584d60513a (patch) | |
tree | 782bf9fafe6d99bf4e2b34ebae98a973c3ae1f99 /mysql-test/r/ssl_7937,nossl.result | |
parent | 80f6b2259330f2bc4de1692b671ab553dc5b4353 (diff) | |
download | mariadb-git-5a44e1a4024f1760021e5c6fd65773584d60513a.tar.gz |
tests for MDEV-7937: Enforce SSL when --ssl client option is usedmariadb-5.5.44
* add a test when server certificate is verified successfully
* one test with two combinations (instead of two tests)
* verbose tets: make it print what it is doing
* fix the test to work with yassl and no-ssl builds
Diffstat (limited to 'mysql-test/r/ssl_7937,nossl.result')
-rw-r--r-- | mysql-test/r/ssl_7937,nossl.result | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/ssl_7937,nossl.result b/mysql-test/r/ssl_7937,nossl.result new file mode 100644 index 00000000000..72693233bc8 --- /dev/null +++ b/mysql-test/r/ssl_7937,nossl.result @@ -0,0 +1,15 @@ +create procedure have_ssl() +select if(variable_value > '','yes','no') as 'have_ssl' + from information_schema.session_status +where variable_name='ssl_cipher'; +mysql --ssl-ca=cacert.pem -e "call test.have_ssl()" +have_ssl +no +mysql --ssl -e "call test.have_ssl()" +have_ssl +no +mysql --ssl-ca=cacert.pem --ssl-verify-server-cert -e "call test.have_ssl()" +ERROR 2026 (HY000): SSL connection error: SSL is required, but the server does not support it +mysql --ssl --ssl-verify-server-cert -e "call test.have_ssl()" +ERROR 2026 (HY000): SSL connection error: SSL is required, but the server does not support it +drop procedure have_ssl; |