Browse Source

password validation plugin API: renames

replace/d7d589dc01f6d70d1518b74d46fd3b75e76267f5
Sergei Golubchik 11 years ago
parent
commit
0ce8703e99
  1. 6
      include/mysql/plugin_password_validation.h
  2. 2
      include/mysql/plugin_password_validation.h.pp
  3. 2
      plugin/cracklib_password_check/cracklib_password_check.c
  4. 2
      plugin/simple_password_check/simple_password_check.c
  5. 4
      sql/sql_acl.cc

6
include/mysql/plugin_password_validation.h

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

2
include/mysql/plugin_password_validation.h.pp

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

2
plugin/cracklib_password_check/cracklib_password_check.c

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

2
plugin/simple_password_check/simple_password_check.c

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

4
sql/sql_acl.cc

@ -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…
Cancel
Save