summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-10-04 15:54:41 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-10-04 15:54:41 +0300
commitfee2a518b46c6269f099314abff85cd13f153bfa (patch)
treec60863e20b4656b29eed7bef0606750b8d9bb9ce /plugin
parentdd2e3db48fce43f6249e1c23b3cf0f5057b41d4e (diff)
downloadmariadb-git-fee2a518b46c6269f099314abff85cd13f153bfa.tar.gz
Bug #56767: Make sure client plugins in 1054 are compatible with
connectors plugins Implemented changes needed to keep the client plugin API compatible with the existing plugins : 1. Provided an options() client plugin API to let the application pass options to the plugin after loading it 2. Added "License" (const char *) to specify the client plugin's license 3. Added "mysql_api" as a placeholder that the client library can use to pass function pointers to the plugin so that the plugin can call the C lib back. 4. Updated the existing client plugins to comply with the API change. 5. Added more detailed error message generation for Windows.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth/dialog.c3
-rw-r--r--plugin/auth/test_plugin.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/plugin/auth/dialog.c b/plugin/auth/dialog.c
index 61cc11e23e2..b7c65b3d601 100644
--- a/plugin/auth/dialog.c
+++ b/plugin/auth/dialog.c
@@ -319,8 +319,11 @@ mysql_declare_client_plugin(AUTHENTICATION)
"Sergei Golubchik",
"Dialog Client Authentication Plugin",
{0,1,0},
+ "GPL",
+ NULL,
init_dialog,
NULL,
+ NULL,
perform_dialog
mysql_end_client_plugin;
diff --git a/plugin/auth/test_plugin.c b/plugin/auth/test_plugin.c
index 1fa1ad4bf61..caea7795833 100644
--- a/plugin/auth/test_plugin.c
+++ b/plugin/auth/test_plugin.c
@@ -196,6 +196,9 @@ mysql_declare_client_plugin(AUTHENTICATION)
"Georgi Kodinov",
"Dialog Client Authentication Plugin",
{0,1,0},
+ "GPL",
+ NULL,
+ NULL,
NULL,
NULL,
test_plugin_client