comparison 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
comparison
equal deleted inserted replaced
8925:4907cc591449 8926:415089905616
1 #ifndef CLIENT_AUTHENTICATE_H 1 #ifndef CLIENT_AUTHENTICATE_H
2 #define CLIENT_AUTHENTICATE_H 2 #define CLIENT_AUTHENTICATE_H
3
4 struct imap_arg;
5
6 #define IMAP_AUTH_FAILED_MSG \
7 "["IMAP_RESP_CODE_AUTHFAILED"] "AUTH_FAILED_MSG
8 #define IMAP_AUTHZ_FAILED_MSG \
9 "["IMAP_RESP_CODE_AUTHZFAILED"] Authorization failed"
3 10
4 const char *client_authenticate_get_capabilities(bool secured); 11 const char *client_authenticate_get_capabilities(bool secured);
5 12
6 int cmd_login(struct imap_client *client, const struct imap_arg *args); 13 int cmd_login(struct imap_client *client, const struct imap_arg *args);
7 int cmd_authenticate(struct imap_client *client, const struct imap_arg *args); 14 int cmd_authenticate(struct imap_client *client, const struct imap_arg *args);