MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
ssl_acceptor_context_status.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2025, 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#ifndef SSL_ACCEPTOR_CONTEXT_STATUS
25#define SSL_ACCEPTOR_CONTEXT_STATUS
26
27/* Functions to show mysql_main interface's TLS properties */
29 public:
30 static int show_ssl_ctx_sess_accept(THD *, SHOW_VAR *var, char *buff);
31 static int show_ssl_ctx_sess_accept_good(THD *, SHOW_VAR *var, char *buff);
32 static int show_ssl_ctx_sess_connect_good(THD *, SHOW_VAR *var, char *buff);
34 char *buff);
36 char *buff);
37 static int show_ssl_ctx_sess_cb_hits(THD *, SHOW_VAR *var, char *buff);
38 static int show_ssl_ctx_sess_hits(THD *, SHOW_VAR *var, char *buff);
39 static int show_ssl_ctx_sess_cache_full(THD *, SHOW_VAR *var, char *buff);
40 static int show_ssl_ctx_sess_misses(THD *, SHOW_VAR *var, char *buff);
41 static int show_ssl_ctx_sess_timeouts(THD *, SHOW_VAR *var, char *buff);
42 static int show_ssl_ctx_sess_number(THD *, SHOW_VAR *var, char *buff);
43 static int show_ssl_ctx_sess_connect(THD *, SHOW_VAR *var, char *buff);
44 static int show_ssl_ctx_sess_get_cache_size(THD *, SHOW_VAR *var, char *buff);
45 static int show_ssl_ctx_get_verify_mode(THD *, SHOW_VAR *var, char *buff);
46 static int show_ssl_ctx_get_verify_depth(THD *, SHOW_VAR *var, char *buff);
48 char *buff);
49 static int show_ssl_get_server_not_before(THD *, SHOW_VAR *var, char *buff);
50 static int show_ssl_get_server_not_after(THD *, SHOW_VAR *var, char *buff);
51 static int show_ssl_get_ssl_ca(THD *, SHOW_VAR *var, char *buff);
52 static int show_ssl_get_ssl_capath(THD *, SHOW_VAR *var, char *buff);
53 static int show_ssl_get_ssl_cert(THD *, SHOW_VAR *var, char *buff);
54 static int show_ssl_get_ssl_key(THD *, SHOW_VAR *var, char *buff);
55 static int show_ssl_get_ssl_cipher(THD *, SHOW_VAR *var, char *buff);
56 static int show_ssl_get_tls_ciphersuites(THD *, SHOW_VAR *var, char *buff);
57 static int show_ssl_get_tls_version(THD *, SHOW_VAR *var, char *buff);
58 static int show_ssl_get_ssl_crl(THD *, SHOW_VAR *var, char *buff);
59 static int show_ssl_get_ssl_crlpath(THD *, SHOW_VAR *var, char *buff);
60 static int show_ssl_ctx_sess_timeout(THD *, SHOW_VAR *var, char *buff);
61};
62#endif // !SSL_ACCEPTOR_CONTEXT_STATUS
Definition: ssl_acceptor_context_status.h:28
static int show_ssl_get_server_not_after(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:287
static int show_ssl_ctx_sess_accept_renegotiate(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:192
static int show_ssl_get_ssl_crlpath(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:341
static int show_ssl_ctx_sess_timeout(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:236
static int show_ssl_get_ssl_cert(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:305
static int show_ssl_get_tls_ciphersuites(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:323
static int show_ssl_get_ssl_cipher(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:317
static int show_ssl_ctx_sess_timeouts(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:230
static int show_ssl_ctx_sess_hits(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:212
static int show_ssl_ctx_sess_cache_full(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:218
static int show_ssl_ctx_sess_get_cache_size(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:255
static int show_ssl_ctx_sess_accept_good(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:180
static int show_ssl_ctx_get_verify_mode(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:262
static int show_ssl_get_server_not_before(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:281
static int show_ssl_ctx_get_session_cache_mode(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:274
static int show_ssl_get_ssl_ca(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:293
static int show_ssl_get_tls_version(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:329
static int show_ssl_ctx_sess_cb_hits(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:206
static int show_ssl_get_ssl_crl(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:335
static int show_ssl_ctx_sess_number(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:242
static int show_ssl_get_ssl_key(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:311
static int show_ssl_get_ssl_capath(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:299
static int show_ssl_ctx_sess_connect_good(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:186
static int show_ssl_ctx_sess_connect(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:249
static int show_ssl_ctx_sess_connect_renegotiate(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:199
static int show_ssl_ctx_get_verify_depth(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:268
static int show_ssl_ctx_sess_accept(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:174
static int show_ssl_ctx_sess_misses(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:224
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
SHOW STATUS Server status variable.
Definition: status_variables_bits.h:81