From 18db7438512de1d6f63c616af5755ea2859597b8 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Fri, 20 Sep 2013 21:56:34 +0100 Subject: 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 ". --- lib/pop3.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/pop3.h') 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, -- cgit v1.2.1