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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user