summaryrefslogtreecommitdiff
path: root/lib/imap.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-10-27 09:10:38 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-10-27 09:17:03 +0000
commit7de4cc35f81aa6c3cdb8b377a27843bcabdaec48 (patch)
treefc05b0c7b3891e6bd81e0b31bad5a7d8090b90d2 /lib/imap.h
parentaa0eaef4838ccda89606459a1dd9a9cecbd612e7 (diff)
downloadcurl-7de4cc35f81aa6c3cdb8b377a27843bcabdaec48.tar.gz
email: Added initial support for cancelling authentication
Should a client application fail to decode an authentication message received from a server, or not support any of the parameters given by the server in the message, then the authentication phrase should be cancelled gracefully by the client rather than simply terminating the connection. The authentication phrase should be cancelled by simply sending a '*' to the server, in response to erroneous data being received, as per RFC-3501, RFC-4954 and RFC-5034. This patch adds the necessary state machine constants and appropriate response handlers in order to add this functionality for the CRAM-MD5, DIGEST-MD5 and NTLM authentication mechanisms.
Diffstat (limited to 'lib/imap.h')
-rw-r--r--lib/imap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/imap.h b/lib/imap.h
index 1d4faabd7..7c9a72066 100644
--- a/lib/imap.h
+++ b/lib/imap.h
@@ -44,6 +44,7 @@ typedef enum {
IMAP_AUTHENTICATE_NTLM,
IMAP_AUTHENTICATE_NTLM_TYPE2MSG,
IMAP_AUTHENTICATE_XOAUTH2,
+ IMAP_AUTHENTICATE_CANCEL,
IMAP_AUTHENTICATE_FINAL,
IMAP_LOGIN,
IMAP_LIST,