(MU_ERR_BAD_AUTH_SCHEME,MU_ERR_AUTH_FAILURE): New error codes.
Showing
2 changed files
with
10 additions
and
0 deletions
... | @@ -73,6 +73,12 @@ extern "C" { | ... | @@ -73,6 +73,12 @@ extern "C" { |
73 | #define MU_ERR_UNSAFE_PERMS (MU_ERR_BASE + 30) | 73 | #define MU_ERR_UNSAFE_PERMS (MU_ERR_BASE + 30) |
74 | /* unsafe file permissions */ | 74 | /* unsafe file permissions */ |
75 | 75 | ||
76 | #define MU_ERR_BAD_AUTH_SCHEME (MU_ERR_BASE + 31) | ||
77 | /* Unsupported authentication scheme */ | ||
78 | |||
79 | #define MU_ERR_AUTH_FAILURE (MU_ERR_BASE + 32) | ||
80 | /* Authentication failed */ | ||
81 | |||
76 | const char *mu_errname __P((int e)); | 82 | const char *mu_errname __P((int e)); |
77 | const char *mu_strerror __P((int e)); | 83 | const char *mu_strerror __P((int e)); |
78 | 84 | ... | ... |
... | @@ -83,6 +83,8 @@ mu_errname (int e) | ... | @@ -83,6 +83,8 @@ mu_errname (int e) |
83 | EN(MU_ERR_NOPASSWORD); | 83 | EN(MU_ERR_NOPASSWORD); |
84 | 84 | ||
85 | EN(MU_ERR_UNSAFE_PERMS); | 85 | EN(MU_ERR_UNSAFE_PERMS); |
86 | EN(MU_ERR_BAD_AUTH_SCHEME); | ||
87 | EN(MU_ERR_AUTH_FAILURE); | ||
86 | } | 88 | } |
87 | 89 | ||
88 | return "SYSTEM ERROR"; | 90 | return "SYSTEM ERROR"; |
... | @@ -136,6 +138,8 @@ mu_strerror (int e) | ... | @@ -136,6 +138,8 @@ mu_strerror (int e) |
136 | ES(MU_ERR_NOPASSWORD, _("User password is not supplied")); | 138 | ES(MU_ERR_NOPASSWORD, _("User password is not supplied")); |
137 | 139 | ||
138 | ES(MU_ERR_UNSAFE_PERMS, _("Unsafe file permissions. Set 0600.")); | 140 | ES(MU_ERR_UNSAFE_PERMS, _("Unsafe file permissions. Set 0600.")); |
141 | ES(MU_ERR_BAD_AUTH_SCHEME, _("Unsupported authentication scheme")); | ||
142 | ES(MU_ERR_AUTH_FAILURE, _("Authentication failed")); | ||
139 | } | 143 | } |
140 | 144 | ||
141 | return strerror (e); | 145 | return strerror (e); | ... | ... |
-
Please register or sign in to post a comment