MySQL 8.3.0
Source Code Documentation
sslopt-case.h
Go to the documentation of this file.
1/* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
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#ifdef MYSQL_SERVER
28#error This header is supposed to be used only in the client
29#endif
30
34 break;
37 find_type_or_exit(argument, &ssl_fips_mode_typelib, opt->name) - 1;
38 break;
41 /* Don't change ssl-mode if set explicitly. */
43 break;
45case OPT_SSL_CERT:
47case OPT_SSL_CRL:
52 break;
@ OPT_TLS_SNI_SERVERNAME
Definition: client_priv.h:186
@ OPT_SSL_CIPHER
Definition: client_priv.h:77
@ OPT_SSL_CRL
Definition: client_priv.h:158
@ OPT_SSL_CERT
Definition: client_priv.h:74
@ OPT_TLS_VERSION
Definition: client_priv.h:169
@ OPT_SSL_SESSION_DATA
Definition: client_priv.h:182
@ OPT_SSL_CRLPATH
Definition: client_priv.h:159
@ OPT_SSL_CAPATH
Definition: client_priv.h:76
@ SSL_MODE_VERIFY_CA
Definition: mysql.h:273
case & ssl_mode_typelib
Definition: sslopt-case.h:32
ssl_mode_set_explicitly
Definition: sslopt-case.h:33
case OPT_SSL_MODE
Definition: sslopt-case.h:32
case OPT_SSL_FIPS_MODE
Definition: sslopt-case.h:37
case & ssl_fips_mode_typelib
Definition: sslopt-case.h:37
case OPT_SSL_KEY
Definition: sslopt-case.h:52
case OPT_SSL_CA
Definition: sslopt-case.h:42
static ulong opt_ssl_fips_mode
Definition: sslopt-vars.h:65
static uint opt_ssl_mode
Definition: sslopt-vars.h:55
int find_type_or_exit(const char *x, TYPELIB *typelib, const char *option)
Definition: typelib.cc:49