1 #ifndef SSLOPT_VARS_INCLUDED 2 #define SSLOPT_VARS_INCLUDED 3 4 /* Copyright (c) 2000, 2017, 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 #ifdef SSL_VARS_NOT_STATIC 21 #define SSL_STATIC 22 #else 23 #define SSL_STATIC static 24 #endif 25 SSL_STATIC my_bool opt_use_ssl = 0; 26 SSL_STATIC char *opt_ssl_ca = 0; 27 SSL_STATIC char *opt_ssl_capath = 0; 28 SSL_STATIC char *opt_ssl_cert = 0; 29 SSL_STATIC char *opt_ssl_cipher = 0; 30 SSL_STATIC char *opt_ssl_key = 0; 31 32 #ifdef MYSQL_CLIENT 33 SSL_STATIC my_bool opt_ssl_verify_server_cert= 0; 34 SSL_STATIC uint opt_ssl_mode= 0; 35 #endif /* MYSQL_CLIENT */ 36 37 #else /* HAVE_OPENSSL */ 38 #define opt_ssl_mode 0 39 #endif /* HAVE_OPENSSL */ 40 41 #endif /* SSLOPT_VARS_INCLUDED */ 42