diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-09-20 21:56:34 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-09-20 21:56:30 +0100 |
commit | 18db7438512de1d6f63c616af5755ea2859597b8 (patch) | |
tree | 72c5678f29d94dd175dc78c9a46b04e8a2f83da4 /lib/pop3.h | |
parent | 0e188e2dc339c6667eb954682a2bf768c6419aa9 (diff) | |
download | curl-18db7438512de1d6f63c616af5755ea2859597b8.tar.gz |
pop3: Added basic SASL XOAUTH2 support
Added the ability to use an XOAUTH2 bearer token [RFC6750] with POP3 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/pop3.h')
-rw-r--r-- | lib/pop3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pop3.h b/lib/pop3.h index 0186e0435..7bc774495 100644 --- a/lib/pop3.h +++ b/lib/pop3.h @@ -43,6 +43,7 @@ typedef enum { POP3_AUTH_DIGESTMD5_RESP, POP3_AUTH_NTLM, POP3_AUTH_NTLM_TYPE2MSG, + POP3_AUTH_XOAUTH2, POP3_AUTH_FINAL, POP3_APOP, POP3_USER, |