summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-03-06 17:32:18 +0100
committerSergei Golubchik <serg@mariadb.org>2017-03-10 18:21:27 +0100
commit6305533de2fd38d43c149d4d7c847f65d68205c7 (patch)
tree5e5ca8621bf4d3dcb579482d8b504b74bda9ca35 /include
parent051851b9a673e38d12612ea92d8a8913b8f0ca45 (diff)
downloadmariadb-git-6305533de2fd38d43c149d4d7c847f65d68205c7.tar.gz
Auth Plugin API: add THD to MYSQL_SERVER_AUTH_INFO
so that auth plugins could use various thd services
Diffstat (limited to 'include')
-rw-r--r--include/mysql/plugin_auth.h7
-rw-r--r--include/mysql/plugin_auth.h.pp1
2 files changed, 7 insertions, 1 deletions
diff --git a/include/mysql/plugin_auth.h b/include/mysql/plugin_auth.h
index d776ed79a61..807bfd4e652 100644
--- a/include/mysql/plugin_auth.h
+++ b/include/mysql/plugin_auth.h
@@ -27,7 +27,7 @@
#include <mysql/plugin.h>
-#define MYSQL_AUTHENTICATION_INTERFACE_VERSION 0x0200
+#define MYSQL_AUTHENTICATION_INTERFACE_VERSION 0x0201
#include <mysql/plugin_auth_common.h>
@@ -105,6 +105,11 @@ typedef struct st_mysql_server_auth_info
*/
unsigned int host_or_ip_length;
+ /**
+ Current THD pointer (to use with various services)
+ */
+ MYSQL_THD thd;
+
} MYSQL_SERVER_AUTH_INFO;
/**
diff --git a/include/mysql/plugin_auth.h.pp b/include/mysql/plugin_auth.h.pp
index 4c28ad4035e..63ad776314d 100644
--- a/include/mysql/plugin_auth.h.pp
+++ b/include/mysql/plugin_auth.h.pp
@@ -504,6 +504,7 @@ typedef struct st_mysql_server_auth_info
int password_used;
const char *host_or_ip;
unsigned int host_or_ip_length;
+ void* thd;
} MYSQL_SERVER_AUTH_INFO;
struct st_mysql_auth
{