aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_sasl.h
diff options
context:
space:
mode:
authorPatrick Monnerat <pm@datasphere.ch>2015-01-20 14:14:26 +0100
committerPatrick Monnerat <pm@datasphere.ch>2015-01-20 14:14:26 +0100
commit5f09cbcdbd0e0ac4e44a32d06122b5e58d575679 (patch)
treee0bbe743feaaec910c7b1c8491d0fa2cceddfeba /lib/curl_sasl.h
parent960b04e137446943a258e910c48f183a1a1a273b (diff)
IMAP/POP3/SMTP: use a per-connection sub-structure for SASL parameters.
Diffstat (limited to 'lib/curl_sasl.h')
-rw-r--r--lib/curl_sasl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
index 369751cee..a83a326a4 100644
--- a/lib/curl_sasl.h
+++ b/lib/curl_sasl.h
@@ -68,6 +68,14 @@ enum {
CURLDIGESTALGO_MD5SESS
};
+/* Per-connection parameters */
+struct SASL {
+ unsigned int authmechs; /* Accepted authentication mechanisms */
+ unsigned int prefmech; /* Preferred authentication mechanism */
+ unsigned int authused; /* Auth mechanism used for the connection */
+ bool mutual_auth; /* Mutual authentication enabled (GSSAPI only) */
+};
+
/* This is used to test whether the line starts with the given mechanism */
#define sasl_mech_equal(line, wordlen, mech) \
(wordlen == (sizeof(mech) - 1) / sizeof(char) && \