MySQL 9.1.0
Source Code Documentation
|
Definitions for the password validation service. More...
Go to the source code of this file.
Classes | |
struct | mysql_password_policy_service_st |
This service allows plugins to validate passwords based on a common policy. More... | |
Functions | |
int | my_validate_password_policy (const char *, unsigned int) |
Invoke the component/plugin to validate the input password. More... | |
int | my_calculate_password_strength (const char *, unsigned int) |
Invoke the component/plugin to evalue the strength of a password. More... | |
Variables | |
struct mysql_password_policy_service_st * | mysql_password_policy_service |
Definitions for the password validation service.
int my_calculate_password_strength | ( | const char * | password, |
unsigned int | password_len | ||
) |
Invoke the component/plugin to evalue the strength of a password.
Implementation of a plugin service mysql_password_policy_service_st method. Typically called when new user is created or existing password is changed. Calls the validate_password_plugin / validate_password_component plugin's / component's st_mysql_validate_password::get_password_strength method. Constructs a temporary binary String object out of the password supplied.
password | password which needs to be validated against the defined policies |
password_len | length of password |
int my_validate_password_policy | ( | const char * | password, |
unsigned int | password_len | ||
) |
Invoke the component/plugin to validate the input password.
Implementation of a plugin service mysql_password_policy_service_st method. Calls the validate_password_plugin / validate_password_component plugin's / component's st_mysql_validate_password::validate_password method. Constructs a temporary binary String object out of the password supplied.
password | password which needs to be validated against the defined policies |
password_len | length of password |
0 | Password OK |
1 | Password incompatible with policy |