MySQL 26.10.0
Source Code Documentation
sslopt-longopts.h
Go to the documentation of this file.
1/* Copyright (c) 2000, 2026, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24/**
25 @file include/sslopt-longopts.h
26*/
27
28{"ssl-mode",
30 "SSL connection mode.",
31 nullptr,
32 nullptr,
33 nullptr,
34 GET_STR,
36 0,
37 0,
38 0,
39 nullptr,
40 0,
41 nullptr},
42 {"ssl-ca",
44 "CA file in PEM format.",
47 nullptr,
48 GET_STR,
50 0,
51 0,
52 0,
53 nullptr,
54 0,
55 nullptr},
56 {"ssl-capath",
58 "CA directory.",
61 nullptr,
62 GET_STR,
64 0,
65 0,
66 0,
67 nullptr,
68 0,
69 nullptr},
70 {"ssl-cert",
72 "X509 cert in PEM format.",
75 nullptr,
76 GET_STR,
78 0,
79 0,
80 0,
81 nullptr,
82 0,
83 nullptr},
84 {"ssl-cipher",
86 "SSL cipher to use.",
89 nullptr,
90 GET_STR,
92 0,
93 0,
94 0,
95 nullptr,
96 0,
97 nullptr},
98 {"ssl-key",
100 "X509 key in PEM format.",
103 nullptr,
104 GET_STR,
106 0,
107 0,
108 0,
109 nullptr,
110 0,
111 nullptr},
112 {"ssl-crl",
114 "Certificate revocation list.",
117 nullptr,
118 GET_STR,
120 0,
121 0,
122 0,
123 nullptr,
124 0,
125 nullptr},
126 {"ssl-crlpath",
128 "Certificate revocation list path.",
131 nullptr,
132 GET_STR,
134 0,
135 0,
136 0,
137 nullptr,
138 0,
139 nullptr},
140 {"tls-version",
142 "TLS version to use, "
143 "permitted values are: TLSv1.2, TLSv1.3",
146 nullptr,
147 GET_STR,
149 0,
150 0,
151 0,
152 nullptr,
153 0,
154 nullptr},
155 {"ssl-fips-mode",
157 "SSL FIPS mode (applies only for OpenSSL); "
158 "permitted values are: OFF, ON, STRICT",
159 nullptr,
160 nullptr,
161 nullptr,
162 GET_STR,
164 0,
165 0,
166 0,
167 nullptr,
168 0,
169 nullptr},
170 {"tls-ciphersuites",
172 "TLS v1.3 cipher to use.",
175 nullptr,
176 GET_STR,
178 0,
179 0,
180 0,
181 nullptr,
182 0,
183 nullptr},
184 {"tls-kex",
186 "TLS key exchange groups to use.",
189 nullptr,
190 GET_STR,
192 0,
193 0,
194 0,
195 nullptr,
196 0,
197 nullptr},
198 {"force-pqc",
200 "If set to ON, require a PQC-compatible TLS key exchange.",
203 nullptr,
204 GET_BOOL,
205 OPT_ARG,
206 0,
207 0,
208 0,
209 nullptr,
210 0,
211 nullptr},
212 {"use-pqc-sign",
214 "If set to OFF, advertise only classical TLS handshake signature "
215 "algorithms.",
218 nullptr,
219 GET_BOOL,
220 OPT_ARG,
221 0,
222 0,
223 0,
224 nullptr,
225 0,
226 nullptr},
227 {"ssl-session-data",
229 "Session data file to use to enable ssl session reuse",
232 nullptr,
233 GET_STR,
235 0,
236 0,
237 0,
238 nullptr,
239 0,
240 nullptr},
241 {"ssl-session-data-continue-on-failed-reuse",
243 "If set to ON, this option will allow connection to succeed even if "
244 "session data cannot be reused.",
247 nullptr,
248 GET_BOOL,
249 OPT_ARG,
250 0,
251 0,
252 0,
253 nullptr,
254 0,
255 nullptr},
256 {"tls-sni-servername",
258 "The SNI server name to pass to server",
261 nullptr,
262 GET_STR,
264 0,
265 0,
266 0,
267 nullptr,
268 0,
269 nullptr},
@ OPT_TLS_SNI_SERVERNAME
Definition: client_priv.h:190
@ OPT_SSL_CIPHER
Definition: client_priv.h:78
@ OPT_SSL_CRL
Definition: client_priv.h:159
@ OPT_USE_PQC_SIGN
Definition: client_priv.h:177
@ OPT_SSL_CERT
Definition: client_priv.h:75
@ OPT_TLS_KEX
Definition: client_priv.h:175
@ OPT_FORCE_PQC
Definition: client_priv.h:176
@ OPT_TLS_CIPHERSUITES
Definition: client_priv.h:174
@ OPT_TLS_VERSION
Definition: client_priv.h:170
@ OPT_SSL_SESSION_DATA
Definition: client_priv.h:186
@ OPT_SSL_CRLPATH
Definition: client_priv.h:160
@ OPT_SSL_MODE
Definition: client_priv.h:171
@ OPT_SSL_CAPATH
Definition: client_priv.h:77
@ OPT_SSL_FIPS_MODE
Definition: client_priv.h:173
@ OPT_SSL_KEY
Definition: client_priv.h:74
@ OPT_SSL_CA
Definition: client_priv.h:76
@ OPT_SSL_SESSION_DATA_CONTINUE_ON_FAILED_REUSE
Definition: client_priv.h:187
@ OPT_ARG
Definition: my_getopt.h:81
@ REQUIRED_ARG
Definition: my_getopt.h:81
#define GET_STR
Definition: my_getopt.h:52
#define GET_BOOL
Definition: my_getopt.h:45
static char * opt_ssl_session_data
Definition: sslopt-vars.h:67
static bool opt_use_pqc_sign
Definition: sslopt-vars.h:65
static bool opt_ssl_session_data_continue_on_failed_reuse
Definition: sslopt-vars.h:68
static char * opt_ssl_cipher
Definition: sslopt-vars.h:56
static char * opt_ssl_ca
Definition: sslopt-vars.h:53
static char * opt_tls_version
Definition: sslopt-vars.h:61
static bool opt_force_pqc
Definition: sslopt-vars.h:64
static char * opt_ssl_capath
Definition: sslopt-vars.h:54
static char * opt_ssl_crlpath
Definition: sslopt-vars.h:60
static char * opt_tls_ciphersuites
Definition: sslopt-vars.h:57
static char * opt_tls_sni_servername
Definition: sslopt-vars.h:69
static char * opt_tls_kex
Definition: sslopt-vars.h:62
static char * opt_ssl_cert
Definition: sslopt-vars.h:55
static char * opt_ssl_crl
Definition: sslopt-vars.h:59
static char * opt_ssl_key
Definition: sslopt-vars.h:58