diff options
author | Patrick Monnerat <pm@datasphere.ch> | 2015-01-20 14:14:26 +0100 |
---|---|---|
committer | Patrick Monnerat <pm@datasphere.ch> | 2015-01-20 14:14:26 +0100 |
commit | 5f09cbcdbd0e0ac4e44a32d06122b5e58d575679 (patch) | |
tree | e0bbe743feaaec910c7b1c8491d0fa2cceddfeba /lib/curl_sasl.h | |
parent | 960b04e137446943a258e910c48f183a1a1a273b (diff) | |
download | curl-5f09cbcdbd0e0ac4e44a32d06122b5e58d575679.tar.gz |
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.h | 8 |
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) && \ |