Commit e87d77a4 e87d77a431960c611ecdfe290e5079cbaecaf9e0 by Sergey Poznyakoff

(MU_ERR_BAD_AUTH_SCHEME,MU_ERR_AUTH_FAILURE): New error codes.

1 parent c1f2cbe6
......@@ -73,6 +73,12 @@ extern "C" {
#define MU_ERR_UNSAFE_PERMS (MU_ERR_BASE + 30)
/* unsafe file permissions */
#define MU_ERR_BAD_AUTH_SCHEME (MU_ERR_BASE + 31)
/* Unsupported authentication scheme */
#define MU_ERR_AUTH_FAILURE (MU_ERR_BASE + 32)
/* Authentication failed */
const char *mu_errname __P((int e));
const char *mu_strerror __P((int e));
......
......@@ -83,6 +83,8 @@ mu_errname (int e)
EN(MU_ERR_NOPASSWORD);
EN(MU_ERR_UNSAFE_PERMS);
EN(MU_ERR_BAD_AUTH_SCHEME);
EN(MU_ERR_AUTH_FAILURE);
}
return "SYSTEM ERROR";
......@@ -136,6 +138,8 @@ mu_strerror (int e)
ES(MU_ERR_NOPASSWORD, _("User password is not supplied"));
ES(MU_ERR_UNSAFE_PERMS, _("Unsafe file permissions. Set 0600."));
ES(MU_ERR_BAD_AUTH_SCHEME, _("Unsupported authentication scheme"));
ES(MU_ERR_AUTH_FAILURE, _("Authentication failed"));
}
return strerror (e);
......