1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Auth Plugin API: add THD to MYSQL_SERVER_AUTH_INFO

so that auth plugins could use various thd services
This commit is contained in:
Sergei Golubchik
2017-03-06 17:32:18 +01:00
parent 051851b9a6
commit 6305533de2
3 changed files with 46 additions and 41 deletions

View File

@@ -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;
/**

View File

@@ -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
{