Clone of PhatAC @ https://github.com/floaterxk/PhatAC

sslopt-longopts.h 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; version 2 of the License.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License
  10. along with this program; if not, write to the Free Software
  11. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  12. #if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
  13. #ifdef MYSQL_CLIENT
  14. {"ssl-mode", OPT_SSL_MODE,
  15. "SSL connection mode.",
  16. 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
  17. {"ssl", OPT_SSL_SSL,
  18. "Deprecated. Use --ssl-mode instead.",
  19. &opt_use_ssl_arg, &opt_use_ssl_arg, 0, GET_BOOL, OPT_ARG, 1, 0, 0, 0, 0, 0},
  20. {"ssl-verify-server-cert", OPT_SSL_VERIFY_SERVER_CERT,
  21. "Deprecated. Use --ssl-mode=VERIFY_IDENTITY instead.",
  22. &opt_ssl_verify_server_cert_arg, &opt_ssl_verify_server_cert_arg,
  23. 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
  24. #else
  25. {"ssl", OPT_SSL_SSL,
  26. "If set to ON, this option enforces that SSL is established before client "
  27. "attempts to authenticate to the server. To disable client SSL capabilities "
  28. "use --ssl=OFF.",
  29. &opt_use_ssl, &opt_use_ssl, 0, GET_BOOL, OPT_ARG, 1, 0, 0, 0, 0, 0},
  30. #endif
  31. {"ssl-ca", OPT_SSL_CA,
  32. "CA file in PEM format.",
  33. &opt_ssl_ca, &opt_ssl_ca, 0, GET_STR, REQUIRED_ARG,
  34. 0, 0, 0, 0, 0, 0},
  35. {"ssl-capath", OPT_SSL_CAPATH,
  36. "CA directory.",
  37. &opt_ssl_capath, &opt_ssl_capath, 0, GET_STR, REQUIRED_ARG,
  38. 0, 0, 0, 0, 0, 0},
  39. {"ssl-cert", OPT_SSL_CERT, "X509 cert in PEM format.",
  40. &opt_ssl_cert, &opt_ssl_cert, 0, GET_STR, REQUIRED_ARG,
  41. 0, 0, 0, 0, 0, 0},
  42. {"ssl-cipher", OPT_SSL_CIPHER, "SSL cipher to use.",
  43. &opt_ssl_cipher, &opt_ssl_cipher, 0, GET_STR, REQUIRED_ARG,
  44. 0, 0, 0, 0, 0, 0},
  45. {"ssl-key", OPT_SSL_KEY, "X509 key in PEM format.",
  46. &opt_ssl_key, &opt_ssl_key, 0, GET_STR, REQUIRED_ARG,
  47. 0, 0, 0, 0, 0, 0},
  48. {"ssl-crl", OPT_SSL_CRL, "Certificate revocation list.",
  49. &opt_ssl_crl, &opt_ssl_crl, 0, GET_STR, REQUIRED_ARG,
  50. 0, 0, 0, 0, 0, 0},
  51. {"ssl-crlpath", OPT_SSL_CRLPATH,
  52. "Certificate revocation list path.",
  53. &opt_ssl_crlpath, &opt_ssl_crlpath, 0, GET_STR, REQUIRED_ARG,
  54. 0, 0, 0, 0, 0, 0},
  55. {"tls-version", OPT_TLS_VERSION, "TLS version to use, "
  56. #ifndef HAVE_YASSL
  57. "permitted values are: TLSv1, TLSv1.1, TLSv1.2",
  58. #else
  59. "permitted values are: TLSv1, TLSv1.1",
  60. #endif
  61. &opt_tls_version, &opt_tls_version, 0, GET_STR, REQUIRED_ARG,
  62. 0, 0, 0, 0, 0, 0},
  63. #endif /* HAVE_OPENSSL */