MySQL 8.4.2
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:288
static int show_ssl_ctx_sess_accept_renegotiate(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:193
static int show_ssl_get_ssl_crlpath(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:342
static int show_ssl_ctx_sess_timeout(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:237
static int show_ssl_get_ssl_cert(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:306
static int show_ssl_get_tls_ciphersuites(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:324
static int show_ssl_get_ssl_cipher(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:318
static int show_ssl_ctx_sess_timeouts(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:231
static int show_ssl_ctx_sess_hits(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:213
static int show_ssl_ctx_sess_cache_full(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:219
static int show_ssl_ctx_sess_get_cache_size(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:256
static int show_ssl_ctx_sess_accept_good(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:181
static int show_ssl_ctx_get_verify_mode(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:263
static int show_ssl_get_server_not_before(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:282
static int show_ssl_ctx_get_session_cache_mode(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:275
static int show_ssl_get_ssl_ca(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:294
static int show_ssl_get_tls_version(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:330
static int show_ssl_ctx_sess_cb_hits(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:207
static int show_ssl_get_ssl_crl(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:336
static int show_ssl_ctx_sess_number(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:243
static int show_ssl_get_ssl_key(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:312
static int show_ssl_get_ssl_capath(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:300
static int show_ssl_ctx_sess_connect_good(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:187
static int show_ssl_ctx_sess_connect(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:250
static int show_ssl_ctx_sess_connect_renegotiate(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:200
static int show_ssl_ctx_get_verify_depth(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:269
static int show_ssl_ctx_sess_accept(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:175
static int show_ssl_ctx_sess_misses(THD *, SHOW_VAR *var, char *buff)
Definition: ssl_acceptor_context_operator.cc:225
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_var.h:79