diff options
author | Kyle L. Huff <kyle.huff@curetheitch.com> | 2013-08-25 13:17:58 -0400 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-08-26 10:16:44 +0100 |
commit | 90ab65c632ec0405893466637c7971e327f1067a (patch) | |
tree | 860e561febb6b5e1c65efb175d0f1cd5a47308fc /lib/smtp.h | |
parent | 34122800b898596f3657f89621dd6762f227653f (diff) | |
download | curl-90ab65c632ec0405893466637c7971e327f1067a.tar.gz |
smtp: added basic SASL XOAUTH2 support
Added the ability to use an XOAUTH2 bearer token [RFC6750] with SMTP for
authentication using RFC6749 "OAuth 2.0 Authorization Framework".
The bearer token is expected to be valid for the user specified in
conn->user. If CURLOPT_XOAUTH2_BEARER is defined and the connection has
an advertised auth mechanism of "XOAUTH2", the user and access token are
formatted as a base64 encoded string and sent to the server as
"AUTH XOAUTH2 <bearer token>".
Diffstat (limited to 'lib/smtp.h')
-rw-r--r-- | lib/smtp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/smtp.h b/lib/smtp.h index 4aff0c5f9..14429a5e7 100644 --- a/lib/smtp.h +++ b/lib/smtp.h @@ -44,6 +44,7 @@ typedef enum { SMTP_AUTH_DIGESTMD5_RESP, SMTP_AUTH_NTLM, SMTP_AUTH_NTLM_TYPE2MSG, + SMTP_AUTH_XOAUTH2, SMTP_AUTH_FINAL, SMTP_MAIL, /* MAIL FROM */ SMTP_RCPT, /* RCPT TO */ |