12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef MYSQL_SERVICE_MYSQL_PLUGIN_AUTH_INCLUDED
- #define MYSQL_SERVICE_MYSQL_PLUGIN_AUTH_INCLUDED
- #ifdef __cplusplus
- extern "C" {
- #endif
- extern struct mysql_password_policy_service_st {
- int (*my_validate_password_policy_func)(const char *, unsigned int);
- int (*my_calculate_password_strength_func)(const char *, unsigned int);
- } *mysql_password_policy_service;
- #ifdef MYSQL_DYNAMIC_PLUGIN
- #define my_validate_password_policy(buffer, length) \
- mysql_password_policy_service->my_validate_password_policy_func(buffer, length)
- #define my_calculate_password_strength(buffer, length) \
- mysql_password_policy_service->my_calculate_password_strength_func(buffer, length)
- #else
- int my_validate_password_policy(const char *, unsigned int);
- int my_calculate_password_strength(const char *, unsigned int);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|