summaryrefslogtreecommitdiff
path: root/lib/pop3.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-04-13 16:09:28 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-04-13 16:16:21 +0100
commitb3a01be2f3fee2fc192175a77b0f347f84466cb3 (patch)
treef24fb5acc424fbf72b2c3d05293dacdffb20afc1 /lib/pop3.h
parent00045a300960e5d48183e5d14d883bfa4295af63 (diff)
downloadcurl-b3a01be2f3fee2fc192175a77b0f347f84466cb3.tar.gz
pop3: Added support for ;auth=<mech> in the URL
Added support for specifying the preferred authentication type and SASL mechanism in the URL as per RFC-2384.
Diffstat (limited to 'lib/pop3.h')
-rw-r--r--lib/pop3.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pop3.h b/lib/pop3.h
index 129dffc71..5fd4b244e 100644
--- a/lib/pop3.h
+++ b/lib/pop3.h
@@ -74,6 +74,8 @@ struct pop3_conn {
non-body */
unsigned int authtypes; /* Supported authentication types */
unsigned int authmechs; /* Accepted SASL authentication mechanisms */
+ unsigned int preftype; /* Preferred authentication type */
+ unsigned int prefmech; /* Preferred SASL authentication mechanism */
unsigned int authused; /* SASL auth mechanism used for the connection */
char *apoptimestamp; /* APOP timestamp from the server greeting */
bool tls_supported; /* StartTLS capability supported by server */
@@ -87,6 +89,10 @@ extern const struct Curl_handler Curl_handler_pop3s;
#define POP3_TYPE_APOP 0x0002
#define POP3_TYPE_SASL 0x0004
+/* Authentication type values */
+#define POP3_TYPE_NONE 0
+#define POP3_TYPE_ANY ~0
+
/* This is the 5-bytes End-Of-Body marker for POP3 */
#define POP3_EOB "\x0d\x0a\x2e\x0d\x0a"
#define POP3_EOB_LEN 5