diff options
author | monty@hundin.mysql.fi <> | 2002-08-09 16:47:16 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-08-09 16:47:16 +0300 |
commit | ac6e640c4dede507d9d9c8f43836785e4b47ae63 (patch) | |
tree | 9e6ce887604db3116c5f936a79eaa6915877323e /client/mysqlcheck.c | |
parent | 7616da973d744d84d6e5abd9f4d1a8fbd2d74811 (diff) | |
download | mariadb-git-ac6e640c4dede507d9d9c8f43836785e4b47ae63.tar.gz |
Fix for SSL and new my_getopt
Fix for syntax error bug in SET TRANSACTION ISOLATION
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r-- | client/mysqlcheck.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 948f9ca8477..fdc7b5cf4d7 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -246,7 +246,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), verbose++; break; case 'V': print_version(); exit(0); -#include "sslopt-case.h" } return 0; } @@ -530,6 +529,9 @@ static int dbConnect(char *host, char *user, char *passwd) if (opt_compress) mysql_options(&mysql_connection, MYSQL_OPT_COMPRESS, NullS); #ifdef HAVE_OPENSSL + if (opt_ssl_key || opt_ssl_cert || opt_ssl_ca || opt_ssl_capath || + opt_ssl_cipher) + opt_use_ssl= 1; if (opt_use_ssl) mysql_ssl_set(&mysql_connection, opt_ssl_key, opt_ssl_cert, opt_ssl_ca, opt_ssl_capath, opt_ssl_cipher); |