Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5e6905bb
Commit
5e6905bb
authored
Mar 17, 2015
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace static usage of AES_CTR with current encryption algorithm.
parent
b0542b78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
plugin/example_key_management_plugin/example_key_management_plugin.cc
...le_key_management_plugin/example_key_management_plugin.cc
+9
-1
No files found.
plugin/example_key_management_plugin/example_key_management_plugin.cc
View file @
5e6905bb
...
...
@@ -6,6 +6,7 @@
#include <mysql/plugin_encryption_key_management.h>
#include <my_md5.h>
#include <my_rnd.h>
#include "sql_class.h"
/* rotate key randomly between 45 and 90 seconds */
#define KEY_ROTATION_MIN 45
...
...
@@ -80,7 +81,14 @@ static int example_key_management_plugin_init(void *p)
my_rnd_init
(
&
seed
,
time
(
0
),
0
);
get_latest_key_version
();
my_aes_init_dynamic_encrypt
(
MY_AES_ALGORITHM_CTR
);
if
(
current_aes_dynamic_method
==
MY_AES_ALGORITHM_NONE
)
{
sql_print_error
(
"No encryption method choosen with --encryption-algorithm. "
"example_key_management_plugin disabled"
);
return
1
;
}
my_aes_init_dynamic_encrypt
(
current_aes_dynamic_method
);
pthread_mutex_init
(
&
mutex
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment