Commit 88632726 authored by Sergei Golubchik's avatar Sergei Golubchik

rename plugins to remove "_plugin" from the plugin name

parent 817a63f2
-- 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
} }
--plugin-load-add=$EXAMPLE_KEY_MANAGEMENT_PLUGIN_SO --plugin-load-add=$EXAMPLE_KEY_MANAGEMENT_SO
--loose-example-key-management-plugin --loose-example-key-management
-- 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
} }
--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
...@@ -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;
...@@ -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
-- 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;
...@@ -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%';
......
...@@ -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%';
......
MYSQL_ADD_PLUGIN(DEBUG_KEY_MANAGEMENT debug_key_management_plugin.cc
MODULE_ONLY)
...@@ -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,
......
MYSQL_ADD_PLUGIN(DEBUG_KEY_MANAGEMENT_PLUGIN debug_key_management_plugin.cc
MODULE_ONLY)
MYSQL_ADD_PLUGIN(EXAMPLE_KEY_MANAGEMENT example_key_management_plugin.cc
MODULE_ONLY)
...@@ -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,
......
MYSQL_ADD_PLUGIN(EXAMPLE_KEY_MANAGEMENT_PLUGIN example_key_management_plugin.cc
MODULE_ONLY)
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()
...@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment