1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Pre requiste MDEV-9245: add host to validate password interface

Hostname added to the interface.

Cracklib plugin fixed according to the new interface.
This commit is contained in:
Oleksandr Byelkin
2021-08-20 14:03:56 +02:00
parent 26c1311c39
commit 9d1a8665cb
8 changed files with 51 additions and 17 deletions

View File

@@ -30,7 +30,7 @@
extern "C" {
#endif
#define MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION 0x0100
#define MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION 0x0101
/**
Password validation plugin descriptor
@@ -43,7 +43,8 @@ struct st_mariadb_password_validation
and return 0 if the password has passed the validation.
*/
int (*validate_password)(const MYSQL_CONST_LEX_STRING *username,
const MYSQL_CONST_LEX_STRING *password);
const MYSQL_CONST_LEX_STRING *password,
const MYSQL_CONST_LEX_STRING *hostname);
};
#ifdef __cplusplus