MySQL 8.0.40
Source Code Documentation
s_mysql_keyring_load Struct Reference

Keyring load service provides way to initialize or reiniitalize keyring component. More...

#include <keyring_load.h>

Public Attributes

mysql_service_status_t(* load )(const char *component_path, const char *instance_path)
 Initialize or Reinitialize keyring. More...
 

Detailed Description

Keyring load service provides way to initialize or reiniitalize keyring component.

This must be implemented by any component that aims at providing keyring functionality.

bool initialize_keyring() {
my_service<SERVICE_TYPE(keyring_load)> keyring_load(
"keyring_load", m_reg_srv);
if (!keyring_load.is_valid()) {
log_error("Failed to obtain handle of keyring initialize service");
return true;
}
if (keyring_load->initialize(component_path, instance_path) == true) {
return true;
}
return false;
}
#define log_error
Definition: log_client.h:111
Wraps my_h_service struct conforming ABI into RAII C++ object with ability to cast to desired service...
Definition: my_service.h:35
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76

Member Data Documentation

◆ load

mysql_service_status_t(* s_mysql_keyring_load::load) (const char *component_path, const char *instance_path)

Initialize or Reinitialize keyring.

A call to (re)initialize service API should result into

  • Reading keyring configuration from its source
  • Connecting to keyring backend
  • Fetch information about stored key and populate new in-memory structures - as needed

Note: This routine should be called in following cases: A. After loading keyring component B. To refresh keyring component

Parameters
[in]component_pathPath to component's shared library. Non-null.
[in]instance_pathPath for instance specific configuration. If null, assumed as current working directory.
Return values
Statusof the operation
falseSuccess
trueFailure

The documentation for this struct was generated from the following file: