diff options
author | monnerat <pm@datasphere.ch> | 2010-04-19 11:16:30 +0200 |
---|---|---|
committer | monnerat <pm@datasphere.ch> | 2010-04-19 11:16:30 +0200 |
commit | 4bfe07640c93f8dfd3af4bb76c8346ef4a129cc8 (patch) | |
tree | ad0163b0560ab8fb593b7f98a6c53822a57d08a4 /lib/smtp.h | |
parent | c5e539c312af011e312bd82a9fef6c2c44061ca9 (diff) |
Implement SMTP authentication
Diffstat (limited to 'lib/smtp.h')
-rw-r--r-- | lib/smtp.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/smtp.h b/lib/smtp.h index 4716338b5..417fd52e5 100644 --- a/lib/smtp.h +++ b/lib/smtp.h @@ -34,6 +34,11 @@ typedef enum { SMTP_EHLO, SMTP_HELO, SMTP_STARTTLS, + SMTP_AUTHPLAIN, + SMTP_AUTHLOGIN, + SMTP_AUTHPASSWD, + SMTP_AUTHCRAM, + SMTP_AUTH, SMTP_MAIL, /* MAIL FROM */ SMTP_RCPT, /* RCPT TO */ SMTP_DATA, @@ -49,10 +54,19 @@ struct smtp_conn { char *domain; /* what to send in the EHLO */ size_t eob; /* number of bytes of the EOB (End Of Body) that has been received thus far */ + unsigned int authmechs; /* Accepted authentication methods. */ smtpstate state; /* always use smtp.c:state() to change state! */ struct curl_slist *rcpt; }; +/* Authentication mechanism flags. */ +#define SMTP_AUTH_LOGIN 0x0001 +#define SMTP_AUTH_PLAIN 0x0002 +#define SMTP_AUTH_CRAM_MD5 0x0004 +#define SMTP_AUTH_DIGEST_MD5 0x0008 +#define SMTP_AUTH_GSSAPI 0x0010 +#define SMTP_AUTH_EXTERNAL 0x0020 + extern const struct Curl_handler Curl_handler_smtp; extern const struct Curl_handler Curl_handler_smtps; |