1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-8126 encryption for temp files

IO_CACHE tempfiles encryption
This commit is contained in:
Sergei Golubchik
2015-05-27 00:18:20 +02:00
parent 318c826e93
commit d9340d6c8e
21 changed files with 518 additions and 16 deletions

View File

@ -19,6 +19,8 @@
#include "sql_plugin.h"
#include <my_crypt.h>
void init_io_cache_encryption();
/* there can be only one encryption plugin enabled */
static plugin_ref encryption_manager= 0;
struct encryption_service_st encryption_handler;
@ -79,6 +81,8 @@ int initialize_encryption_plugin(st_plugin_int *plugin)
encryption_handler.encryption_key_get_latest_version_func=
handle->get_latest_key_version; // must be the last
init_io_cache_encryption();
return 0;
}
@ -100,6 +104,7 @@ int finalize_encryption_plugin(st_plugin_int *plugin)
if (encryption_manager)
plugin_unlock(NULL, encryption_manager);
encryption_manager= 0;
init_io_cache_encryption();
return 0;
}