2001-12-06 14:10:51 +02:00
|
|
|
/* Copyright (C) 2000 MySQL AB
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
2000-07-31 21:29:14 +02:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2001-12-06 14:10:51 +02:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
#ifdef HAVE_OPENSSL
|
|
|
|
case OPT_SSL_SSL:
|
2001-01-16 22:35:27 +02:00
|
|
|
opt_use_ssl = 1; /* true */
|
2000-07-31 21:29:14 +02:00
|
|
|
break;
|
|
|
|
case OPT_SSL_KEY:
|
2001-01-16 22:35:27 +02:00
|
|
|
opt_use_ssl = 1; /* true */
|
2000-07-31 21:29:14 +02:00
|
|
|
my_free(opt_ssl_key, MYF(MY_ALLOW_ZERO_PTR));
|
|
|
|
opt_ssl_key = my_strdup(optarg, MYF(0));
|
|
|
|
break;
|
|
|
|
case OPT_SSL_CERT:
|
2001-01-16 22:35:27 +02:00
|
|
|
opt_use_ssl = 1; /* true */
|
2000-07-31 21:29:14 +02:00
|
|
|
my_free(opt_ssl_cert, MYF(MY_ALLOW_ZERO_PTR));
|
|
|
|
opt_ssl_cert = my_strdup(optarg, MYF(0));
|
|
|
|
break;
|
|
|
|
case OPT_SSL_CA:
|
2001-01-16 22:35:27 +02:00
|
|
|
opt_use_ssl = 1; /* true */
|
2000-07-31 21:29:14 +02:00
|
|
|
my_free(opt_ssl_ca, MYF(MY_ALLOW_ZERO_PTR));
|
|
|
|
opt_ssl_ca = my_strdup(optarg, MYF(0));
|
|
|
|
break;
|
|
|
|
case OPT_SSL_CAPATH:
|
2001-01-16 22:35:27 +02:00
|
|
|
opt_use_ssl = 1; /* true */
|
2001-11-05 09:33:05 +02:00
|
|
|
my_free(opt_ssl_capath, MYF(MY_ALLOW_ZERO_PTR));
|
2001-11-01 16:59:00 +02:00
|
|
|
opt_ssl_capath = my_strdup(optarg, MYF(0));
|
2000-07-31 21:29:14 +02:00
|
|
|
break;
|
2001-09-30 10:46:20 +08:00
|
|
|
case OPT_SSL_CIPHER:
|
|
|
|
opt_use_ssl = 1; /* true */
|
|
|
|
my_free(opt_ssl_cipher, MYF(MY_ALLOW_ZERO_PTR));
|
|
|
|
opt_ssl_cipher = my_strdup(optarg, MYF(0));
|
|
|
|
break;
|
2000-07-31 21:29:14 +02:00
|
|
|
#endif
|