9
3

sslopt-case.h 1.3 KB

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