summaryrefslogtreecommitdiff
path: root/include/mysql/plugin_auth.h.pp
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-01-02 22:53:54 +0100
committerSergei Golubchik <serg@mariadb.org>2015-02-10 10:21:18 +0100
commit21430e43786edaf5b689c8b4aed49341bb7021c8 (patch)
treed3d094c02cd596d66da0b5c23c3f89698c5ed7d9 /include/mysql/plugin_auth.h.pp
parentcf8bf0b68e1c4281535813d4087680296138271c (diff)
downloadmariadb-git-21430e43786edaf5b689c8b4aed49341bb7021c8.tar.gz
encryption keys service
Diffstat (limited to 'include/mysql/plugin_auth.h.pp')
-rw-r--r--include/mysql/plugin_auth.h.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/mysql/plugin_auth.h.pp b/include/mysql/plugin_auth.h.pp
index 062eb4e4ec5..ad694730330 100644
--- a/include/mysql/plugin_auth.h.pp
+++ b/include/mysql/plugin_auth.h.pp
@@ -197,6 +197,19 @@ int thd_key_create(MYSQL_THD_KEY_T *key);
void thd_key_delete(MYSQL_THD_KEY_T *key);
void* thd_getspecific(void* thd, MYSQL_THD_KEY_T key);
int thd_setspecific(void* thd, MYSQL_THD_KEY_T key, void *value);
+#include <mysql/service_encryption_keys.h>
+extern struct encryption_keys_service_st {
+ unsigned int (*get_latest_encryption_key_version_func)();
+ unsigned int (*has_encryption_key_func)(unsigned int);
+ unsigned int (*get_encryption_key_size_func)(unsigned int);
+ int (*get_encryption_key_func)(unsigned int, unsigned char*, unsigned int);
+ int (*get_encryption_iv_func)(unsigned int, unsigned char*, unsigned int);
+} *encryption_keys_service;
+unsigned int get_latest_encryption_key_version();
+unsigned int has_encryption_key(unsigned int version);
+unsigned int get_encryption_key_size(unsigned int version);
+int get_encryption_key(unsigned int version, unsigned char* key, unsigned int keybufsize);
+int get_encryption_iv(unsigned int version, unsigned char* iv, unsigned int ivbufsize);
struct st_mysql_xid {
long formatID;
long gtrid_length;