password validation plugin API: renames
This commit is contained in:
parent
5e17ca565e
commit
0ce8703e99
@ -17,9 +17,9 @@
|
|||||||
/**
|
/**
|
||||||
@file
|
@file
|
||||||
|
|
||||||
Authentication Plugin API.
|
Password Validation Plugin API.
|
||||||
|
|
||||||
This file defines the API for server authentication plugins.
|
This file defines the API for server password validation plugins.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define MYSQL_PLUGIN_PASSWORD_VALIDATION_INCLUDED
|
#define MYSQL_PLUGIN_PASSWORD_VALIDATION_INCLUDED
|
||||||
@ -31,7 +31,7 @@
|
|||||||
/**
|
/**
|
||||||
Password validation plugin descriptor
|
Password validation plugin descriptor
|
||||||
*/
|
*/
|
||||||
struct st_mysql_password_validation
|
struct st_mariadb_password_validation
|
||||||
{
|
{
|
||||||
int interface_version; /**< version plugin uses */
|
int interface_version; /**< version plugin uses */
|
||||||
/**
|
/**
|
||||||
|
@ -353,7 +353,7 @@ void *thd_get_ha_data(const void* thd, const struct handlerton *hton);
|
|||||||
void thd_set_ha_data(void* thd, const struct handlerton *hton,
|
void thd_set_ha_data(void* thd, const struct handlerton *hton,
|
||||||
const void *ha_data);
|
const void *ha_data);
|
||||||
void thd_wakeup_subsequent_commits(void* thd, int wakeup_error);
|
void thd_wakeup_subsequent_commits(void* thd, int wakeup_error);
|
||||||
struct st_mysql_password_validation
|
struct st_mariadb_password_validation
|
||||||
{
|
{
|
||||||
int interface_version;
|
int interface_version;
|
||||||
int (*validate_password)(MYSQL_LEX_STRING *username,
|
int (*validate_password)(MYSQL_LEX_STRING *username,
|
||||||
|
@ -58,7 +58,7 @@ static struct st_mysql_sys_var* sysvars[]= {
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct st_mysql_password_validation info=
|
static struct st_mariadb_password_validation info=
|
||||||
{
|
{
|
||||||
MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION,
|
MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION,
|
||||||
crackme
|
crackme
|
||||||
|
@ -79,7 +79,7 @@ static struct st_mysql_sys_var* sysvars[]= {
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct st_mysql_password_validation info=
|
static struct st_mariadb_password_validation info=
|
||||||
{
|
{
|
||||||
MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION,
|
MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION,
|
||||||
validate
|
validate
|
||||||
|
@ -879,8 +879,8 @@ struct validation_data { LEX_STRING *user, *password; };
|
|||||||
static my_bool do_validate(THD *, plugin_ref plugin, void *arg)
|
static my_bool do_validate(THD *, plugin_ref plugin, void *arg)
|
||||||
{
|
{
|
||||||
struct validation_data *data= (struct validation_data *)arg;
|
struct validation_data *data= (struct validation_data *)arg;
|
||||||
struct st_mysql_password_validation *handler=
|
struct st_mariadb_password_validation *handler=
|
||||||
(st_mysql_password_validation *)plugin_decl(plugin)->info;
|
(st_mariadb_password_validation *)plugin_decl(plugin)->info;
|
||||||
return handler->validate_password(data->user, data->password);
|
return handler->validate_password(data->user, data->password);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user