Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
e87d77a4
...
e87d77a431960c611ecdfe290e5079cbaecaf9e0
authored
2003-09-10 14:04:44 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(MU_ERR_BAD_AUTH_SCHEME,MU_ERR_AUTH_FAILURE): New error codes.
1 parent
c1f2cbe6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
include/mailutils/errno.h
mailbox/muerrno.c
include/mailutils/errno.h
View file @
e87d77a
...
...
@@ -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
));
...
...
mailbox/muerrno.c
View file @
e87d77a
...
...
@@ -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
);
...
...
Please
register
or
sign in
to post a comment