24#ifndef MYSQL_SERVICE_MYSQL_PLUGIN_KEYRING_INCLUDED
25#define MYSQL_SERVICE_MYSQL_PLUGIN_KEYRING_INCLUDED
67 const void *, size_t);
87#ifdef MYSQL_DYNAMIC_PLUGIN
89#define my_key_store(key_id, key_type, user_id, key, key_len) \
90 mysql_keyring_service->my_key_store_func(key_id, key_type, user_id, key, \
92#define my_key_fetch(key_id, key_type, user_id, key, key_len) \
93 mysql_keyring_service->my_key_fetch_func(key_id, key_type, user_id, key, \
95#define my_key_remove(key_id, user_id) \
96 mysql_keyring_service->my_key_remove_func(key_id, user_id)
97#define my_key_generate(key_id, key_type, user_id, key_len) \
98 mysql_keyring_service->my_key_generate_func(key_id, key_type, user_id, \
102int my_key_store(
const char *,
const char *,
const char *,
const void *,
104int my_key_fetch(
const char *,
char **,
const char *,
void **,
size_t *);
struct mysql_keyring_service_st * mysql_keyring_service
int my_key_fetch(const char *, char **, const char *, void **, size_t *)
Iterates over all active keyring plugins and calls the mysql_key_fetch API for the first one found.
Definition: keyring_service.cc:125
int my_key_store(const char *, const char *, const char *, const void *, size_t)
Iterates over all active keyring plugins calls the mysql_key_store API for the first one found.
Definition: keyring_service.cc:141
int my_key_generate(const char *, const char *, const char *, size_t)
Iterates over all active keyring plugins and calls the mysql_key_generate API for the first one found...
Definition: keyring_service.cc:166
int my_key_remove(const char *, const char *)
Iterates over all active keyring plugins and calls the mysql_key_remove API for the first one found.
Definition: keyring_service.cc:154
This service allows plugins to interact with key store backends.
Definition: service_mysql_keyring.h:61
int(* my_key_generate_func)(const char *, const char *, const char *, size_t)
Generates a new key inside the keyring backend.
Definition: service_mysql_keyring.h:84
int(* my_key_fetch_func)(const char *, char **, const char *, void **, size_t *)
Receives a key from the keyring.
Definition: service_mysql_keyring.h:72
int(* my_key_remove_func)(const char *, const char *)
Removes a key from the keyring.
Definition: service_mysql_keyring.h:79
int(* my_key_store_func)(const char *, const char *, const char *, const void *, size_t)
Stores a key into the keyring.
Definition: service_mysql_keyring.h:66