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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
88632726
Commit
88632726
authored
Mar 27, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename plugins to remove "_plugin" from the plugin name
parent
817a63f2
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
32 additions
and
32 deletions
+32
-32
mysql-test/include/have_example_key_management_plugin.inc
mysql-test/include/have_example_key_management_plugin.inc
+2
-2
mysql-test/include/have_example_key_management_plugin.opt
mysql-test/include/have_example_key_management_plugin.opt
+2
-2
mysql-test/include/have_file_key_management_plugin.inc
mysql-test/include/have_file_key_management_plugin.inc
+2
-2
mysql-test/include/have_file_key_management_plugin.opt
mysql-test/include/have_file_key_management_plugin.opt
+3
-3
mysql-test/suite/innodb/r/innodb_encryption_debug.result
mysql-test/suite/innodb/r/innodb_encryption_debug.result
+2
-2
mysql-test/suite/innodb/t/innodb_encryption_debug.opt
mysql-test/suite/innodb/t/innodb_encryption_debug.opt
+1
-1
mysql-test/suite/innodb/t/innodb_encryption_debug.test
mysql-test/suite/innodb/t/innodb_encryption_debug.test
+4
-4
mysql-test/suite/plugins/r/show_all_plugins.result
mysql-test/suite/plugins/r/show_all_plugins.result
+1
-1
mysql-test/suite/plugins/t/show_all_plugins.test
mysql-test/suite/plugins/t/show_all_plugins.test
+1
-1
plugin/debug_key_management/CMakeLists.txt
plugin/debug_key_management/CMakeLists.txt
+2
-0
plugin/debug_key_management/debug_key_management_plugin.cc
plugin/debug_key_management/debug_key_management_plugin.cc
+2
-2
plugin/debug_key_management_plugin/CMakeLists.txt
plugin/debug_key_management_plugin/CMakeLists.txt
+0
-2
plugin/example_key_management/CMakeLists.txt
plugin/example_key_management/CMakeLists.txt
+2
-0
plugin/example_key_management/example_key_management_plugin.cc
...n/example_key_management/example_key_management_plugin.cc
+2
-2
plugin/example_key_management_plugin/CMakeLists.txt
plugin/example_key_management_plugin/CMakeLists.txt
+0
-2
plugin/file_key_management/CMakeLists.txt
plugin/file_key_management/CMakeLists.txt
+1
-1
plugin/file_key_management/EncKeys.cc
plugin/file_key_management/EncKeys.cc
+0
-0
plugin/file_key_management/EncKeys.h
plugin/file_key_management/EncKeys.h
+0
-0
plugin/file_key_management/KeySingleton.cc
plugin/file_key_management/KeySingleton.cc
+0
-0
plugin/file_key_management/KeySingleton.h
plugin/file_key_management/KeySingleton.h
+0
-0
plugin/file_key_management/file_key_management_plugin.cc
plugin/file_key_management/file_key_management_plugin.cc
+5
-5
No files found.
mysql-test/include/have_example_key_management_plugin.inc
View file @
88632726
--
source
encryption_algorithms
.
inc
--
source
encryption_algorithms
.
inc
if
(
`select count(*) = 0 from information_schema.plugins
if
(
`select count(*) = 0 from information_schema.plugins
where plugin_name = 'example_key_management
_plugin
' and plugin_status='active'`
)
where plugin_name = 'example_key_management' and plugin_status='active'`
)
{
{
--
skip
Needs
example_key_management
_plugin
--
skip
Needs
example_key_management
}
}
mysql-test/include/have_example_key_management_plugin.opt
View file @
88632726
--plugin-load-add=$EXAMPLE_KEY_MANAGEMENT_
PLUGIN_
SO
--plugin-load-add=$EXAMPLE_KEY_MANAGEMENT_SO
--loose-example-key-management
-plugin
--loose-example-key-management
mysql-test/include/have_file_key_management_plugin.inc
View file @
88632726
--
source
encryption_algorithms
.
inc
--
source
encryption_algorithms
.
inc
if
(
`select count(*) = 0 from information_schema.plugins
if
(
`select count(*) = 0 from information_schema.plugins
where plugin_name = 'file_key_management
_plugin
' and plugin_status='active'`
)
where plugin_name = 'file_key_management' and plugin_status='active'`
)
{
{
--
skip
Needs
file_key_management
_plugin
--
skip
Needs
file_key_management
}
}
mysql-test/include/have_file_key_management_plugin.opt
View file @
88632726
--plugin-load-add=$FILE_KEY_MANAGEMENT_
PLUGIN_
SO
--plugin-load-add=$FILE_KEY_MANAGEMENT_SO
--loose-file-key-management
-plugin
--loose-file-key-management
--loose-file-key-management-
plugin-
filename=$MYSQL_TEST_DIR/std_data/keys.txt
--loose-file-key-management-filename=$MYSQL_TEST_DIR/std_data/keys.txt
mysql-test/suite/innodb/r/innodb_encryption_debug.result
View file @
88632726
...
@@ -10,10 +10,10 @@ space name min_key_version current_key_version
...
@@ -10,10 +10,10 @@ space name min_key_version current_key_version
1 mysql/innodb_table_stats 0 1
1 mysql/innodb_table_stats 0 1
2 mysql/innodb_index_stats 0 1
2 mysql/innodb_index_stats 0 1
0 NULL 0 1
0 NULL 0 1
set global debug_key_management_
plugin_
version=10;
set global debug_key_management_version=10;
select space,name,min_key_version,current_key_version from information_schema.innodb_tablespaces_encryption;
select space,name,min_key_version,current_key_version from information_schema.innodb_tablespaces_encryption;
space name min_key_version current_key_version
space name min_key_version current_key_version
1 mysql/innodb_table_stats 0 10
1 mysql/innodb_table_stats 0 10
2 mysql/innodb_index_stats 0 10
2 mysql/innodb_index_stats 0 10
0 NULL 0 10
0 NULL 0 10
set global debug_key_management_
plugin_
version=1;
set global debug_key_management_version=1;
mysql-test/suite/innodb/t/innodb_encryption_debug.opt
View file @
88632726
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
--innodb-encryption-rotate-key-age=2
--innodb-encryption-rotate-key-age=2
--innodb-encryption-threads=4
--innodb-encryption-threads=4
--innodb-tablespaces-encryption
--innodb-tablespaces-encryption
--plugin-load-add=$DEBUG_KEY_MANAGEMENT_
PLUGIN_
SO
--plugin-load-add=$DEBUG_KEY_MANAGEMENT_SO
mysql-test/suite/innodb/t/innodb_encryption_debug.test
View file @
88632726
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
if
(
`select count(*) = 0 from information_schema.plugins
if
(
`select count(*) = 0 from information_schema.plugins
where plugin_name = 'debug_key_management
_plugin
' and plugin_status='active'`
)
where plugin_name = 'debug_key_management' and plugin_status='active'`
)
{
{
--
skip
Needs
debug_key_management
_plugin
--
skip
Needs
debug_key_management
}
}
show
variables
like
'innodb_encrypt%'
;
show
variables
like
'innodb_encrypt%'
;
select
space
,
name
,
min_key_version
,
current_key_version
from
information_schema
.
innodb_tablespaces_encryption
;
select
space
,
name
,
min_key_version
,
current_key_version
from
information_schema
.
innodb_tablespaces_encryption
;
set
global
debug_key_management_
plugin_
version
=
10
;
set
global
debug_key_management_version
=
10
;
select
space
,
name
,
min_key_version
,
current_key_version
from
information_schema
.
innodb_tablespaces_encryption
;
select
space
,
name
,
min_key_version
,
current_key_version
from
information_schema
.
innodb_tablespaces_encryption
;
set
global
debug_key_management_
plugin_
version
=
1
;
set
global
debug_key_management_version
=
1
;
mysql-test/suite/plugins/r/show_all_plugins.result
View file @
88632726
...
@@ -21,7 +21,7 @@ Name Status Type Library License
...
@@ -21,7 +21,7 @@ Name Status Type Library License
EXAMPLE NOT INSTALLED STORAGE ENGINE ha_example.so GPL
EXAMPLE NOT INSTALLED STORAGE ENGINE ha_example.so GPL
UNUSABLE NOT INSTALLED DAEMON ha_example.so GPL
UNUSABLE NOT INSTALLED DAEMON ha_example.so GPL
daemon_example NOT INSTALLED DAEMON libdaemon_example.so GPL
daemon_example NOT INSTALLED DAEMON libdaemon_example.so GPL
example_key_management
_plugin NOT INSTALLED ENCRYPTION KEY MANAGEMENT example_key_management_plugin
.so GPL
example_key_management
NOT INSTALLED ENCRYPTION KEY MANAGEMENT example_key_management
.so GPL
three_attempts NOT INSTALLED AUTHENTICATION dialog_examples.so GPL
three_attempts NOT INSTALLED AUTHENTICATION dialog_examples.so GPL
two_questions NOT INSTALLED AUTHENTICATION dialog_examples.so GPL
two_questions NOT INSTALLED AUTHENTICATION dialog_examples.so GPL
show status like '%libraries%';
show status like '%libraries%';
...
...
mysql-test/suite/plugins/t/show_all_plugins.test
View file @
88632726
...
@@ -2,7 +2,7 @@ if (!$DIALOG_EXAMPLES_SO) { skip requires dialog_examples.so; }
...
@@ -2,7 +2,7 @@ if (!$DIALOG_EXAMPLES_SO) { skip requires dialog_examples.so; }
if
(
!
$HA_EXAMPLE_SO
)
{
skip
requires
ha_examples
.
so
;
}
if
(
!
$HA_EXAMPLE_SO
)
{
skip
requires
ha_examples
.
so
;
}
if
(
!
$LIBDAEMON_EXAMPLE_SO
)
{
skip
requires
libdaemon_examples
.
so
;
}
if
(
!
$LIBDAEMON_EXAMPLE_SO
)
{
skip
requires
libdaemon_examples
.
so
;
}
if
(
!
$UDF_EXAMPLE_SO
)
{
skip
requires
udf_example
.
so
;
}
if
(
!
$UDF_EXAMPLE_SO
)
{
skip
requires
udf_example
.
so
;
}
if
(
!
$EXAMPLE_KEY_MANAGEMENT_
PLUGIN_SO
)
{
skip
requires
example_key_management_plugin_
so
;
}
if
(
!
$EXAMPLE_KEY_MANAGEMENT_
SO
)
{
skip
requires
example_key_management
.
so
;
}
flush
status
;
flush
status
;
show
status
like
'%libraries%'
;
show
status
like
'%libraries%'
;
...
...
plugin/debug_key_management/CMakeLists.txt
0 → 100644
View file @
88632726
MYSQL_ADD_PLUGIN
(
DEBUG_KEY_MANAGEMENT debug_key_management_plugin.cc
MODULE_ONLY
)
plugin/debug_key_management
_plugin
/debug_key_management_plugin.cc
→
plugin/debug_key_management/debug_key_management_plugin.cc
View file @
88632726
...
@@ -73,11 +73,11 @@ struct st_mariadb_encryption_key_management debug_key_management_plugin= {
...
@@ -73,11 +73,11 @@ struct st_mariadb_encryption_key_management debug_key_management_plugin= {
/*
/*
Plugin library descriptor
Plugin library descriptor
*/
*/
maria_declare_plugin
(
debug_key_management
_plugin
)
maria_declare_plugin
(
debug_key_management
)
{
{
MariaDB_ENCRYPTION_KEY_MANAGEMENT_PLUGIN
,
MariaDB_ENCRYPTION_KEY_MANAGEMENT_PLUGIN
,
&
debug_key_management_plugin
,
&
debug_key_management_plugin
,
"debug_key_management
_plugin
"
,
"debug_key_management"
,
"Sergei Golubchik"
,
"Sergei Golubchik"
,
"Debug key management plugin"
,
"Debug key management plugin"
,
PLUGIN_LICENSE_GPL
,
PLUGIN_LICENSE_GPL
,
...
...
plugin/debug_key_management_plugin/CMakeLists.txt
deleted
100644 → 0
View file @
817a63f2
MYSQL_ADD_PLUGIN
(
DEBUG_KEY_MANAGEMENT_PLUGIN debug_key_management_plugin.cc
MODULE_ONLY
)
plugin/example_key_management/CMakeLists.txt
0 → 100644
View file @
88632726
MYSQL_ADD_PLUGIN
(
EXAMPLE_KEY_MANAGEMENT example_key_management_plugin.cc
MODULE_ONLY
)
plugin/example_key_management
_plugin
/example_key_management_plugin.cc
→
plugin/example_key_management/example_key_management_plugin.cc
View file @
88632726
...
@@ -123,11 +123,11 @@ struct st_mariadb_encryption_key_management example_key_management_plugin= {
...
@@ -123,11 +123,11 @@ struct st_mariadb_encryption_key_management example_key_management_plugin= {
/*
/*
Plugin library descriptor
Plugin library descriptor
*/
*/
maria_declare_plugin
(
example_key_management
_plugin
)
maria_declare_plugin
(
example_key_management
)
{
{
MariaDB_ENCRYPTION_KEY_MANAGEMENT_PLUGIN
,
MariaDB_ENCRYPTION_KEY_MANAGEMENT_PLUGIN
,
&
example_key_management_plugin
,
&
example_key_management_plugin
,
"example_key_management
_plugin
"
,
"example_key_management"
,
"Jonas Oreland"
,
"Jonas Oreland"
,
"Example key management plugin"
,
"Example key management plugin"
,
PLUGIN_LICENSE_GPL
,
PLUGIN_LICENSE_GPL
,
...
...
plugin/example_key_management_plugin/CMakeLists.txt
deleted
100644 → 0
View file @
817a63f2
MYSQL_ADD_PLUGIN
(
EXAMPLE_KEY_MANAGEMENT_PLUGIN example_key_management_plugin.cc
MODULE_ONLY
)
plugin/file_key_management
_plugin
/CMakeLists.txt
→
plugin/file_key_management/CMakeLists.txt
View file @
88632726
SET
(
FILE_KEY_MANAGEMENT_PLUGIN_SOURCES file_key_management_plugin.cc EncKeys.cc KeySingleton.cc
)
SET
(
FILE_KEY_MANAGEMENT_PLUGIN_SOURCES file_key_management_plugin.cc EncKeys.cc KeySingleton.cc
)
IF
(
NOT SSL_SOURCES
)
IF
(
NOT SSL_SOURCES
)
MYSQL_ADD_PLUGIN
(
FILE_KEY_MANAGEMENT
_PLUGIN
${
FILE_KEY_MANAGEMENT_PLUGIN_SOURCES
}
MYSQL_ADD_PLUGIN
(
FILE_KEY_MANAGEMENT
${
FILE_KEY_MANAGEMENT_PLUGIN_SOURCES
}
LINK_LIBRARIES pcre
)
LINK_LIBRARIES pcre
)
ENDIF
()
ENDIF
()
plugin/file_key_management
_plugin
/EncKeys.cc
→
plugin/file_key_management/EncKeys.cc
View file @
88632726
File moved
plugin/file_key_management
_plugin
/EncKeys.h
→
plugin/file_key_management/EncKeys.h
View file @
88632726
File moved
plugin/file_key_management
_plugin
/KeySingleton.cc
→
plugin/file_key_management/KeySingleton.cc
View file @
88632726
File moved
plugin/file_key_management
_plugin
/KeySingleton.h
→
plugin/file_key_management/KeySingleton.h
View file @
88632726
File moved
plugin/file_key_management
_plugin
/file_key_management_plugin.cc
→
plugin/file_key_management/file_key_management_plugin.cc
View file @
88632726
...
@@ -211,13 +211,13 @@ static int file_key_management_plugin_init(void *p)
...
@@ -211,13 +211,13 @@ static int file_key_management_plugin_init(void *p)
if
(
current_aes_dynamic_method
==
MY_AES_ALGORITHM_NONE
)
if
(
current_aes_dynamic_method
==
MY_AES_ALGORITHM_NONE
)
{
{
sql_print_error
(
"No encryption method choosen with --encryption-algorithm. "
sql_print_error
(
"No encryption method choosen with --encryption-algorithm. "
"file_key_management
_plugin
disabled"
);
"file_key_management disabled"
);
return
1
;
return
1
;
}
}
if
(
filename
==
NULL
||
strcmp
(
""
,
filename
)
==
0
)
if
(
filename
==
NULL
||
strcmp
(
""
,
filename
)
==
0
)
{
{
sql_print_error
(
"Parameter file_key_management_
plugin_
filename is required"
);
sql_print_error
(
"Parameter file_key_management_filename is required"
);
return
1
;
return
1
;
}
}
...
@@ -245,13 +245,13 @@ struct st_mariadb_encryption_key_management file_key_management_plugin= {
...
@@ -245,13 +245,13 @@ struct st_mariadb_encryption_key_management file_key_management_plugin= {
/*
/*
Plugin library descriptor
Plugin library descriptor
*/
*/
maria_declare_plugin
(
file_key_management
_plugin
)
maria_declare_plugin
(
file_key_management
)
{
{
MariaDB_ENCRYPTION_KEY_MANAGEMENT_PLUGIN
,
MariaDB_ENCRYPTION_KEY_MANAGEMENT_PLUGIN
,
&
file_key_management_plugin
,
&
file_key_management_plugin
,
"file_key_management
_plugin
"
,
"file_key_management"
,
"Denis Endro eperi GmbH"
,
"Denis Endro eperi GmbH"
,
"File key management plugin"
,
"File
-based
key management plugin"
,
PLUGIN_LICENSE_GPL
,
PLUGIN_LICENSE_GPL
,
file_key_management_plugin_init
,
/* Plugin Init */
file_key_management_plugin_init
,
/* Plugin Init */
file_key_management_plugin_deinit
,
/* Plugin Deinit */
file_key_management_plugin_deinit
,
/* Plugin Deinit */
...
...
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