diff options
| author | Steve Holme <steve_holme@hotmail.com> | 2013-01-06 19:13:58 +0000 | 
|---|---|---|
| committer | Steve Holme <steve_holme@hotmail.com> | 2013-01-06 19:13:58 +0000 | 
| commit | db205177961218ebd8e358351dc9dd94490c79e6 (patch) | |
| tree | 8a5e2313f13804ba32528e6b44428cf39c6fb8a7 /lib/imap.h | |
| parent | 4a5aa6682daeea7cd7cbbb47ce3e1c310e9261c2 (diff) | |
imap: Added support for SASL based authentication mechanism detection
Added support for detecting the supported SASL authentication mechanisms
via the CAPABILITY command.
Diffstat (limited to 'lib/imap.h')
| -rw-r--r-- | lib/imap.h | 16 | 
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/imap.h b/lib/imap.h index 4cd6bc76a..60cb0465a 100644 --- a/lib/imap.h +++ b/lib/imap.h @@ -7,7 +7,7 @@   *                            | (__| |_| |  _ <| |___   *                             \___|\___/|_| \_\_____|   * - * Copyright (C) 2009 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2009 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.   *   * This software is licensed as described in the file COPYING, which   * you should have received as part of this distribution. The terms @@ -34,6 +34,7 @@ typedef enum {    IMAP_STARTTLS,    IMAP_UPGRADETLS,   /* asynchronously upgrade the connection to SSL/TLS                         (multi mode only) */ +  IMAP_CAPABILITY,    IMAP_LOGIN,    IMAP_SELECT,    IMAP_FETCH, @@ -45,12 +46,13 @@ typedef enum {     struct */  struct imap_conn {    struct pingpong pp; -  char *mailbox;     /* Message ID to fetch */ -  imapstate state;   /* Always use imap.c:state() to change state! */ -  int cmdid;         /* Next command ID */ -  const char *idstr; /* String based response ID to wait for */ -  bool ssldone;      /* Is connect() over SSL done? Only relevant in -                        multi mode */ +  char *mailbox;          /* Message ID to fetch */ +  unsigned int authmechs; /* Accepted authentication mechanisms */ +  imapstate state;        /* Always use imap.c:state() to change state! */ +  int cmdid;              /* Next command ID */ +  const char *idstr;      /* String based response ID to wait for */ +  bool ssldone;           /* Is connect() over SSL done? Only relevant in +                             multi mode */  };  extern const struct Curl_handler Curl_handler_imap;  | 
