MySQL 9.1.0
Source Code Documentation
|
#include <stddef.h>
#include <functional>
#include "my_inttypes.h"
#include "mysql/plugin.h"
#include "mysql/plugin_keyring.h"
#include "sql/current_thd.h"
#include "sql/set_var.h"
#include "sql/sql_plugin.h"
#include "sql/sql_plugin_ref.h"
Classes | |
class | Callback |
Class that stores callback function reference as well as the result of the callback function call (invoke method). More... | |
Functions | |
static bool | key_plugin_cb_fn (THD *, plugin_ref plugin, void *arg) |
Callback function that is called on the plugin. More... | |
static bool | iterate_plugins (std::function< bool(st_mysql_keyring *keyring)> fn, bool check_access=true) |
Iterate over plugins of the MYSQL_KEYRING_PLUGIN type and call the function specified by the argument. More... | |
int | my_key_fetch (const char *key_id, char **key_type, const char *user_id, void **key, size_t *key_len) |
Iterates over all active keyring plugins and calls the mysql_key_fetch API for the first one found. More... | |
int | my_key_store (const char *key_id, const char *key_type, const char *user_id, const void *key, size_t key_len) |
Iterates over all active keyring plugins calls the mysql_key_store API for the first one found. More... | |
int | my_key_remove (const char *key_id, const char *user_id) |
Iterates over all active keyring plugins and calls the mysql_key_remove API for the first one found. More... | |
int | my_key_generate (const char *key_id, const char *key_type, const char *user_id, size_t key_len) |
Iterates over all active keyring plugins and calls the mysql_key_generate API for the first one found. More... | |
int | my_key_iterator_init (void **key_iterator) |
Iterates over all active keyring plugins and calls the mysql_key_iterator_init API for the first one found. More... | |
int | my_key_iterator_deinit (void *key_iterator) |
Iterates over all active keyring plugins and calls the mysql_key_iterator_deinit API for the first one found. More... | |
int | my_key_iterator_get_key (void *key_iterator, char *key_id, char *user_id) |
Iterates over all active keyring plugins and calls the mysql_key_iterator_get_key API for the first one found. More... | |
|
static |
Iterate over plugins of the MYSQL_KEYRING_PLUGIN type and call the function specified by the argument.
fn | Function that can call plugin defined function. |
check_access | Perform access check. |
|
static |
Callback function that is called on the plugin.
plugin | Plugin reference. |
arg | Opaque Callback pointer. |
int my_key_fetch | ( | const char * | key_id, |
char ** | key_type, | ||
const char * | user_id, | ||
void ** | key, | ||
size_t * | key_len | ||
) |
Iterates over all active keyring plugins and calls the mysql_key_fetch API for the first one found.
int my_key_generate | ( | const char * | key_id, |
const char * | key_type, | ||
const char * | user_id, | ||
size_t | key_len | ||
) |
Iterates over all active keyring plugins and calls the mysql_key_generate API for the first one found.
int my_key_iterator_deinit | ( | void * | key_iterator | ) |
Iterates over all active keyring plugins and calls the mysql_key_iterator_deinit API for the first one found.
int my_key_iterator_get_key | ( | void * | key_iterator, |
char * | key_id, | ||
char * | user_id | ||
) |
Iterates over all active keyring plugins and calls the mysql_key_iterator_get_key API for the first one found.
int my_key_iterator_init | ( | void ** | key_iterator | ) |
Iterates over all active keyring plugins and calls the mysql_key_iterator_init API for the first one found.
int my_key_remove | ( | const char * | key_id, |
const char * | user_id | ||
) |
Iterates over all active keyring plugins and calls the mysql_key_remove API for the first one found.
int my_key_store | ( | const char * | key_id, |
const char * | key_type, | ||
const char * | user_id, | ||
const void * | key, | ||
size_t | key_len | ||
) |
Iterates over all active keyring plugins calls the mysql_key_store API for the first one found.