summaryrefslogtreecommitdiff
path: root/client/mysqltest.cc
diff options
context:
space:
mode:
authorGeorg Richter <georg@mariadb.com>2018-12-03 13:55:20 +0100
committerGeorg Richter <georg@mariadb.com>2018-12-03 13:55:20 +0100
commit0513237f82730cd54fa0aabf4a1b7513f0fc8779 (patch)
tree0ce53850c6c2058909b1fd1dab45daeb502766f9 /client/mysqltest.cc
parent3728b11f879634a7ddab39cb951aedceadba80b1 (diff)
downloadmariadb-git-bb_mdev14101.tar.gz
MDEV-14101: Provide option to specify tls_version for client toolsbb_mdev14101
Diffstat (limited to 'client/mysqltest.cc')
-rw-r--r--client/mysqltest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index e805fc61a54..fd13fc71306 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -6102,6 +6102,7 @@ void do_connect(struct st_command *command)
opt_ssl_capath, ssl_cipher ? ssl_cipher : opt_ssl_cipher);
mysql_options(con_slot->mysql, MYSQL_OPT_SSL_CRL, opt_ssl_crl);
mysql_options(con_slot->mysql, MYSQL_OPT_SSL_CRLPATH, opt_ssl_crlpath);
+ mysql_options(con_slot->mysql, MARIADB_OPT_TLS_VERSION, (void *)opt_tls_version);
#if MYSQL_VERSION_ID >= 50000
/* Turn on ssl_verify_server_cert only if host is "localhost" */
opt_ssl_verify_server_cert= !strcmp(ds_host.str, "localhost");