summaryrefslogtreecommitdiff
path: root/lib/imap.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-23 00:08:18 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-23 23:58:49 +0200
commitbefaa7b14fd5d1c1d4e06035c4babc6cb9623722 (patch)
tree282e138e30b42b5ef2bc903153ae40d261baa800 /lib/imap.h
parent00da16ca5b31be84070fc85a85f28b62204d95a8 (diff)
downloadcurl-befaa7b14fd5d1c1d4e06035c4babc6cb9623722.tar.gz
imap: support PREAUTH
It is a defined possible greeting at server startup that means the connection is already authenticated. See https://tools.ietf.org/html/rfc3501#section-7.1.4 Test 846 added to verify. Fixes #1818 Closes #1820
Diffstat (limited to 'lib/imap.h')
-rw-r--r--lib/imap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/imap.h b/lib/imap.h
index 5e0e228f5..9fc4ff5a3 100644
--- a/lib/imap.h
+++ b/lib/imap.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2009 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2009 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -71,6 +71,7 @@ struct imap_conn {
struct pingpong pp;
imapstate state; /* Always use imap.c:state() to change state! */
bool ssldone; /* Is connect() over SSL done? */
+ bool preauth; /* Is this connection PREAUTH? */
struct SASL sasl; /* SASL-related parameters */
unsigned int preftype; /* Preferred authentication type */
int cmdid; /* Last used command ID */