password validation plugin API: renames
This commit is contained in:
parent
5e17ca565e
commit
0ce8703e99
@ -17,9 +17,9 @@
|
||||
/**
|
||||
@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
|
||||
@ -31,7 +31,7 @@
|
||||
/**
|
||||
Password validation plugin descriptor
|
||||
*/
|
||||
struct st_mysql_password_validation
|
||||
struct st_mariadb_password_validation
|
||||
{
|
||||
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,
|
||||
const void *ha_data);
|
||||
void thd_wakeup_subsequent_commits(void* thd, int wakeup_error);
|
||||
struct st_mysql_password_validation
|
||||
struct st_mariadb_password_validation
|
||||
{
|
||||
int interface_version;
|
||||
int (*validate_password)(MYSQL_LEX_STRING *username,
|
||||
|
@ -58,7 +58,7 @@ static struct st_mysql_sys_var* sysvars[]= {
|
||||
NULL
|
||||
};
|
||||
|
||||
static struct st_mysql_password_validation info=
|
||||
static struct st_mariadb_password_validation info=
|
||||
{
|
||||
MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION,
|
||||
crackme
|
||||
|
@ -79,7 +79,7 @@ static struct st_mysql_sys_var* sysvars[]= {
|
||||
NULL
|
||||
};
|
||||
|
||||
static struct st_mysql_password_validation info=
|
||||
static struct st_mariadb_password_validation info=
|
||||
{
|
||||
MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION,
|
||||
validate
|
||||
|
@ -879,8 +879,8 @@ struct validation_data { LEX_STRING *user, *password; };
|
||||
static my_bool do_validate(THD *, plugin_ref plugin, void *arg)
|
||||
{
|
||||
struct validation_data *data= (struct validation_data *)arg;
|
||||
struct st_mysql_password_validation *handler=
|
||||
(st_mysql_password_validation *)plugin_decl(plugin)->info;
|
||||
struct st_mariadb_password_validation *handler=
|
||||
(st_mariadb_password_validation *)plugin_decl(plugin)->info;
|
||||
return handler->validate_password(data->user, data->password);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user