1#ifndef SSLOPT_CASE_INCLUDED
2#define SSLOPT_CASE_INCLUDED
3
4/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; version 2 of the License.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
18
19#if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
20 case OPT_SSL_KEY:
21 case OPT_SSL_CERT:
22 case OPT_SSL_CA:
23 case OPT_SSL_CAPATH:
24 case OPT_SSL_CIPHER:
25 case OPT_SSL_CRL:
26 case OPT_SSL_CRLPATH:
27 /*
28 Enable use of SSL if we are using any ssl option
29 One can disable SSL later by using --skip-ssl or --ssl=0
30 */
31 opt_use_ssl= 1;
32 /* crl has no effect in yaSSL */
33#ifdef HAVE_YASSL
34 opt_ssl_crl= NULL;
35 opt_ssl_crlpath= NULL;
36#endif
37 break;
38#endif
39#endif /* SSLOPT_CASE_INCLUDED */
40