summaryrefslogtreecommitdiff
path: root/lib/pop3.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2012-06-09 11:48:44 +0100
committerSteve Holme <steve_holme@hotmail.com>2012-06-09 11:48:44 +0100
commit4e430a8a16460f340c776dbd6f305cdf1e9dacc8 (patch)
tree05e4919c6e79f1587d311ca076423eef421376b8 /lib/pop3.h
parent6478e1d7e5cf9a03a24f1d34eb92d4a4aad01f24 (diff)
downloadcurl-4e430a8a16460f340c776dbd6f305cdf1e9dacc8.tar.gz
pop3: Enhanced the extended authentication mechanism detection
Enhanced the authentication type / mechanism detection in preparation for the introduction of APOP support.
Diffstat (limited to 'lib/pop3.h')
-rw-r--r--lib/pop3.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/pop3.h b/lib/pop3.h
index 949ac5059..1ca8bb289 100644
--- a/lib/pop3.h
+++ b/lib/pop3.h
@@ -57,14 +57,20 @@ struct pop3_conn {
have been received so far */
size_t strip; /* Number of bytes from the start to ignore as
non-body */
+ unsigned int authtypes; /* Supported authentication types */
unsigned int authmechs; /* Accepted SASL authentication mechanisms */
- unsigned int authused; /* Authentication method used for the connection */
+ unsigned int authused; /* SASL auth mechanism used for the connection */
pop3state state; /* Always use pop3.c:state() to change state! */
};
extern const struct Curl_handler Curl_handler_pop3;
extern const struct Curl_handler Curl_handler_pop3s;
+/* Authentication type flags */
+#define POP3_TYPE_CLEARTEXT 0x0001
+#define POP3_TYPE_APOP 0x0002
+#define POP3_TYPE_SASL 0x0004
+
/* This is the 5-bytes End-Of-Body marker for POP3 */
#define POP3_EOB "\x0d\x0a\x2e\x0d\x0a"
#define POP3_EOB_LEN 5