24#ifndef MYSQL_SERVICE_MYSQL_PLUGIN_KEYRING_INCLUDED
25#define MYSQL_SERVICE_MYSQL_PLUGIN_KEYRING_INCLUDED
27#ifndef MYSQL_ABI_CHECK
71 const void *, size_t);
91#ifdef MYSQL_DYNAMIC_PLUGIN
93#define my_key_store(key_id, key_type, user_id, key, key_len) \
94 mysql_keyring_service->my_key_store_func(key_id, key_type, user_id, key, \
96#define my_key_fetch(key_id, key_type, user_id, key, key_len) \
97 mysql_keyring_service->my_key_fetch_func(key_id, key_type, user_id, key, \
99#define my_key_remove(key_id, user_id) \
100 mysql_keyring_service->my_key_remove_func(key_id, user_id)
101#define my_key_generate(key_id, key_type, user_id, key_len) \
102 mysql_keyring_service->my_key_generate_func(key_id, key_type, user_id, \
106int my_key_store(
const char *,
const char *,
const char *,
const void *,
108int 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:65
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:88
int(* my_key_fetch_func)(const char *, char **, const char *, void **, size_t *)
Receives a key from the keyring.
Definition: service_mysql_keyring.h:76
int(* my_key_remove_func)(const char *, const char *)
Removes a key from the keyring.
Definition: service_mysql_keyring.h:83
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:70