From cfb6f03224297750164c5bafeb5b3e59866fca50 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 6 Jan 2013 22:25:14 +0000 Subject: imap: Added support for sasl plain text authentication --- lib/imap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/imap.h') diff --git a/lib/imap.h b/lib/imap.h index 60cb0465a..896f35ad4 100644 --- a/lib/imap.h +++ b/lib/imap.h @@ -35,6 +35,8 @@ typedef enum { IMAP_UPGRADETLS, /* asynchronously upgrade the connection to SSL/TLS (multi mode only) */ IMAP_CAPABILITY, + IMAP_AUTHENTICATE_PLAIN, + IMAP_AUTHENTICATE, IMAP_LOGIN, IMAP_SELECT, IMAP_FETCH, @@ -48,6 +50,7 @@ struct imap_conn { struct pingpong pp; char *mailbox; /* Message ID to fetch */ unsigned int authmechs; /* Accepted authentication mechanisms */ + unsigned int authused; /* Auth mechanism used for the connection */ imapstate state; /* Always use imap.c:state() to change state! */ int cmdid; /* Next command ID */ const char *idstr; /* String based response ID to wait for */ -- cgit v1.2.3