summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-05-31 16:28:03 +0200
committerunknown <msvensson@shellback.(none)>2006-05-31 16:28:03 +0200
commit3ebe4455c2e7192ef68874a9f99f59d66cef2a1f (patch)
tree92ae15c5cadea2a335f8fe977788dedbeb388b04 /client
parenta9e1cf7244707dce60df28bdbd77865e95286c42 (diff)
downloadmariadb-git-3ebe4455c2e7192ef68874a9f99f59d66cef2a1f.tar.gz
Bug#20022 mysql-test-run can't be run with secure connections turned on for all testcases
- Part 1, fixes rpl- and federated-tests where connection is made to 127.0.0.1 client/mysqltest.c: Turn on ssl_verify_server_cert only if host is "localhost"
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index fbbab4a0b3b..2fc09fbc3d2 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -2381,6 +2381,9 @@ int do_connect(struct st_query *q)
#ifdef HAVE_OPENSSL
if (opt_use_ssl || con_ssl)
{
+ /* Turn on ssl_verify_server_cert only if host is "localhost" */
+ opt_ssl_verify_server_cert= !strcmp(con_host, "localhost");
+
mysql_ssl_set(&next_con->mysql, opt_ssl_key, opt_ssl_cert, opt_ssl_ca,
opt_ssl_capath, opt_ssl_cipher);
mysql_options(&next_con->mysql, MYSQL_OPT_SSL_VERIFY_SERVER_CERT,