MySQL 8.0.39
Source Code Documentation
ssl_acceptor_context_status.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2024, 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:289
static int show_ssl_ctx_sess_accept_renegotiate(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:194
static int show_ssl_get_ssl_crlpath(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:343
static int show_ssl_ctx_sess_timeout(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:238
static int show_ssl_get_ssl_cert(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:307
static int show_ssl_get_tls_ciphersuites(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:325
static int show_ssl_get_ssl_cipher(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:319
static int show_ssl_ctx_sess_timeouts(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:232
static int show_ssl_ctx_sess_hits(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:214
static int show_ssl_ctx_sess_cache_full(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:220
static int show_ssl_ctx_sess_get_cache_size(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:257
static int show_ssl_ctx_sess_accept_good(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:182
static int show_ssl_ctx_get_verify_mode(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:264
static int show_ssl_get_server_not_before(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:283
static int show_ssl_ctx_get_session_cache_mode(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:276
static int show_ssl_get_ssl_ca(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:295
static int show_ssl_get_tls_version(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:331
static int show_ssl_ctx_sess_cb_hits(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:208
static int show_ssl_get_ssl_crl(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:337
static int show_ssl_ctx_sess_number(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:244
static int show_ssl_get_ssl_key(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:313
static int show_ssl_get_ssl_capath(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:301
static int show_ssl_ctx_sess_connect_good(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:188
static int show_ssl_ctx_sess_connect(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:251
static int show_ssl_ctx_sess_connect_renegotiate(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:201
static int show_ssl_ctx_get_verify_depth(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:270
static int show_ssl_ctx_sess_accept(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:176
static int show_ssl_ctx_sess_misses(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:226
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
SHOW STATUS Server status variable.
Definition: status_var.h:79