Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap-login/client-authenticate.h @ 8926:415089905616 HEAD
imap-login: Use [resp-codes] to figure out when to replace remote's auth failed message with ours.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 07 Apr 2009 16:38:47 -0400 |
parents | e4eb71ae8e96 |
children |
line wrap: on
line diff
--- a/src/imap-login/client-authenticate.h Tue Apr 07 14:42:16 2009 -0400 +++ b/src/imap-login/client-authenticate.h Tue Apr 07 16:38:47 2009 -0400 @@ -1,6 +1,13 @@ #ifndef CLIENT_AUTHENTICATE_H #define CLIENT_AUTHENTICATE_H +struct imap_arg; + +#define IMAP_AUTH_FAILED_MSG \ + "["IMAP_RESP_CODE_AUTHFAILED"] "AUTH_FAILED_MSG +#define IMAP_AUTHZ_FAILED_MSG \ + "["IMAP_RESP_CODE_AUTHZFAILED"] Authorization failed" + const char *client_authenticate_get_capabilities(bool secured); int cmd_login(struct imap_client *client, const struct imap_arg *args);