MySQL  8.0.18
Source Code Documentation
sslopt-case.h
Go to the documentation of this file.
1 /* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 /**
24  @file include/sslopt-case.h
25 */
26 
27 #if defined(HAVE_OPENSSL)
28 
29 #ifdef MYSQL_SERVER
30 #error This header is supposed to be used only in the client
31 #endif
32 
33 case OPT_SSL_MODE:
34  opt_ssl_mode = find_type_or_exit(argument, &ssl_mode_typelib, opt->name);
35  ssl_mode_set_explicitly = true;
36  break;
39  find_type_or_exit(argument, &ssl_fips_mode_typelib, opt->name) - 1;
40  break;
41 case OPT_SSL_CA:
42 case OPT_SSL_CAPATH:
43  /* Don't change ssl-mode if set explicitly. */
44  if (!ssl_mode_set_explicitly) opt_ssl_mode = SSL_MODE_VERIFY_CA;
45  break;
46 case OPT_SSL_KEY:
47 case OPT_SSL_CERT:
48 case OPT_SSL_CIPHER:
49 case OPT_SSL_CRL:
50 case OPT_SSL_CRLPATH:
51 case OPT_TLS_VERSION:
52  break;
53 #endif /* HAVE_OPENSSL */
Definition: client_priv.h:159
Definition: client_priv.h:173
ulong opt_ssl_fips_mode
Definition: mysqld.cc:1684
Definition: client_priv.h:74
Definition: client_priv.h:78
Definition: client_priv.h:77
Definition: client_priv.h:160
Definition: client_priv.h:75
int find_type_or_exit(const char *x, TYPELIB *typelib, const char *option)
Definition: typelib.cc:48
Definition: client_priv.h:76
Definition: client_priv.h:170
Definition: client_priv.h:171
Definition: mysql.h:271