MySQL 8.0.40
Source Code Documentation
mysql_server_keyring_lockable_imp.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MYSQL_SERVER_KEYRING_LOCKABLE_IMP_INCLUDED
25#define MYSQL_SERVER_KEYRING_LOCKABLE_IMP_INCLUDED
26
27#include <atomic>
28#include <string>
29
31
34
42
43extern SERVICE_TYPE(keyring_aes) * srv_keyring_aes;
44extern SERVICE_TYPE(keyring_generator) * srv_keyring_generator;
45extern SERVICE_TYPE(keyring_keys_metadata_iterator) *
47extern SERVICE_TYPE(keyring_component_status) * srv_keyring_component_status;
48extern SERVICE_TYPE(keyring_component_metadata_query) *
50extern SERVICE_TYPE(keyring_reader_with_status) * srv_keyring_reader;
51extern SERVICE_TYPE(keyring_load) * srv_keyring_load;
52extern SERVICE_TYPE(keyring_writer) * srv_keyring_writer;
53
54namespace keyring_lockable {
55
56/* Keyring_encryption_service_impl */
58/* Keyring_generator_service_impl */
60/* Keyring_keys_metadata_iterator_service_impl */
62/* Keyring_metadata_query_service_impl */
64/* Keyring_reader_service_impl */
66/* Keyring_load_service_impl */
68/* Keyring_writer_service_impl */
70
71} // namespace keyring_lockable
72
78
79#endif /* MYSQL_SERVER_KEYRING_LOCKABLE_IMP_INCLUDED */
Specifies macros to define Components.
const mysql_service_keyring_load_t * srv_keyring_load
Server handle for keyring load service.
Definition: mysql_server_keyring_lockable_imp.cc:103
void keyring_lockable_init()
Initialize lockable keyring component.
Definition: mysql_server_keyring_lockable_imp.cc:590
const mysql_service_keyring_aes_t * srv_keyring_aes
Server handle for keyring AES encryption service.
Definition: mysql_server_keyring_lockable_imp.cc:83
void release_keyring_handles()
Definition: mysql_server_keyring_lockable_imp.cc:872
void keyring_lockable_deinit()
Deinitialize lockable keyring component.
Definition: mysql_server_keyring_lockable_imp.cc:596
void set_srv_keyring_implementation_as_default()
Set server's implementation of keyring as default.
Definition: mysql_server_keyring_lockable_imp.cc:661
const mysql_service_keyring_keys_metadata_iterator_t * srv_keyring_keys_metadata_iterator
Server handle for keyring keys metadata service.
Definition: mysql_server_keyring_lockable_imp.cc:90
const mysql_service_keyring_component_metadata_query_t * srv_keyring_component_metadata_query
Server handle for keyring component metadata service.
Definition: mysql_server_keyring_lockable_imp.cc:97
const mysql_service_keyring_reader_with_status_t * srv_keyring_reader
Server handle for keyring reader service.
Definition: mysql_server_keyring_lockable_imp.cc:100
const mysql_service_keyring_writer_t * srv_keyring_writer
Server handle for keyring writer service.
Definition: mysql_server_keyring_lockable_imp.cc:106
const mysql_service_keyring_generator_t * srv_keyring_generator
Server handle for keyring generator service.
Definition: mysql_server_keyring_lockable_imp.cc:86
const mysql_service_keyring_component_status_t * srv_keyring_component_status
Server handle for keyring status service.
Definition: mysql_server_keyring_lockable_imp.cc:93
bool keyring_status_no_error()
Definition: mysql_server_keyring_lockable_imp.cc:947
Definition: mysql_server_keyring_lockable_imp.cc:128
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76
Specifies macros to define Service Implementations.