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/imap.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/imap.h')
-rw-r--r-- | lib/imap.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/imap.h b/lib/imap.h index 768fc4b8c..81af6a290 100644 --- a/lib/imap.h +++ b/lib/imap.h @@ -23,6 +23,7 @@ ***************************************************************************/ #include "pingpong.h" +#include "curl_sasl.h" /**************************************************************************** * IMAP unique setup @@ -83,16 +84,13 @@ struct imap_conn { struct pingpong pp; imapstate state; /* Always use imap.c:state() to change state! */ bool ssldone; /* Is connect() over SSL done? */ - unsigned int authmechs; /* Accepted authentication mechanisms */ + struct SASL sasl; /* SASL-related parameters */ unsigned int preftype; /* Preferred authentication type */ - unsigned int prefmech; /* Preferred authentication mechanism */ - unsigned int authused; /* Auth mechanism used for the connection */ int cmdid; /* Last used command ID */ char resptag[5]; /* Response tag to wait for */ bool tls_supported; /* StartTLS capability supported by server */ bool login_disabled; /* LOGIN command disabled by server */ bool ir_supported; /* Initial response supported by server */ - bool mutual_auth; /* Mutual authentication enabled (GSSAPI only) */ char *mailbox; /* The last selected mailbox */ char *mailbox_uidvalidity; /* UIDVALIDITY parsed from select response */ }; |