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, version 2.0,
8    as published by the Free Software Foundation.
9 
10    This program is also distributed with certain software (including
11    but not limited to OpenSSL) that is licensed under separate terms,
12    as designated in a particular file or component or in included license
13    documentation.  The authors of MySQL hereby grant you an additional
14    permission to link the program and your derivative works with the
15    separately licensed software that they have included with MySQL.
16 
17    This program is distributed in the hope that it will be useful,
18    but WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20    GNU General Public License, version 2.0, for more details.
21 
22    You should have received a copy of the GNU General Public License
23    along with this program; if not, write to the Free Software
24    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA */
25 
26 #if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
27 #ifdef SSL_VARS_NOT_STATIC
28 #define SSL_STATIC
29 #else
30 #define SSL_STATIC static
31 #endif
32 SSL_STATIC my_bool opt_use_ssl   = 0;
33 SSL_STATIC char *opt_ssl_ca      = 0;
34 SSL_STATIC char *opt_ssl_capath  = 0;
35 SSL_STATIC char *opt_ssl_cert    = 0;
36 SSL_STATIC char *opt_ssl_cipher  = 0;
37 SSL_STATIC char *opt_ssl_key     = 0;
38 SSL_STATIC char *opt_ssl_crl     = 0;
39 SSL_STATIC char *opt_ssl_crlpath = 0;
40 
41 #ifdef MYSQL_CLIENT
42 SSL_STATIC my_bool opt_ssl_verify_server_cert= 0;
43 SSL_STATIC uint opt_ssl_mode= 0;
44 #endif /* MYSQL_CLIENT */
45 #else /* HAVE_OPENSSL */
46 #define opt_ssl_mode 0
47 #endif /* HAVE_OPENSSL */
48 
49 #endif /* SSLOPT_VARS_INCLUDED */
50