24#ifndef MYSQL_SERVICE_MYSQL_PLUGIN_AUTH_INCLUDED
25#define MYSQL_SERVICE_MYSQL_PLUGIN_AUTH_INCLUDED
63#ifdef MYSQL_DYNAMIC_PLUGIN
65#define my_validate_password_policy(buffer, length) \
66 mysql_password_policy_service->my_validate_password_policy_func(buffer, \
68#define my_calculate_password_strength(buffer, length) \
69 mysql_password_policy_service->my_calculate_password_strength_func(buffer, \
struct mysql_password_policy_service_st * mysql_password_policy_service
int my_calculate_password_strength(const char *, unsigned int)
Invoke the component/plugin to evalue the strength of a password.
Definition: password_policy_service.cc:132
int my_validate_password_policy(const char *, unsigned int)
Invoke the component/plugin to validate the input password.
Definition: password_policy_service.cc:74
This service allows plugins to validate passwords based on a common policy.
Definition: service_mysql_password_policy.h:46
int(* my_validate_password_policy_func)(const char *, unsigned int)
Validates a password.
Definition: service_mysql_password_policy.h:53
int(* my_calculate_password_strength_func)(const char *, unsigned int)
Evaluates the strength of a password in a scale 0-100.
Definition: service_mysql_password_policy.h:60