Move authentication return codes to gw_authenticator.h
The MYSQL_* authentication return codes are now in gw_authenticator.h so that all authenticators can use them. Also dropped the MYSQL_ prefix from the return codes and added AUTH_INCOMPLETE for a generic authentication-in-progress return code.
This commit is contained in:
@ -959,7 +959,7 @@ char *create_auth_fail_str(char *username,
|
||||
{
|
||||
ferrstr = "Access denied for user '%s'@'%s' (using password: %s) to database '%s'";
|
||||
}
|
||||
else if (errcode == MYSQL_FAILED_AUTH_SSL)
|
||||
else if (errcode == MXS_AUTH_FAILED_SSL)
|
||||
{
|
||||
ferrstr = "Access without SSL denied";
|
||||
}
|
||||
@ -980,7 +980,7 @@ char *create_auth_fail_str(char *username,
|
||||
{
|
||||
sprintf(errstr, ferrstr, username, hostaddr, (*sha1 == '\0' ? "NO" : "YES"), db);
|
||||
}
|
||||
else if (errcode == MYSQL_FAILED_AUTH_SSL)
|
||||
else if (errcode == MXS_AUTH_FAILED_SSL)
|
||||
{
|
||||
sprintf(errstr, "%s", ferrstr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user