From 9822842646bc2b940d4b98a260ee4e3ac26fce57 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Wed, 15 Jan 2020 12:42:06 -0700 Subject: * Add configuration screen for XOAUTH, so users can configure their own client-id and client-secret information. --- imap/src/c-client/mail.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'imap/src/c-client/mail.c') diff --git a/imap/src/c-client/mail.c b/imap/src/c-client/mail.c index 7291a642..adddb9d4 100644 --- a/imap/src/c-client/mail.c +++ b/imap/src/c-client/mail.c @@ -91,6 +91,8 @@ static copyuid_t mailcopyuid = NIL; static appenduid_t mailappenduid = NIL; static oauth2getaccesscode_t oauth2getaccesscode = NIL; + +static oauth2clientinfo_t oauth2clientinfo = NIL; /* free elt extra stuff callback */ static freeeltsparep_t mailfreeeltsparep = NIL; /* free envelope extra stuff callback */ @@ -673,6 +675,11 @@ void *mail_parameters (MAILSTREAM *stream,long function,void *value) case GET_OA2CLIENTGETACCESSCODE: ret = (void *) oauth2getaccesscode; break; + case SET_OA2CLIENTINFO: + oauth2clientinfo = (oauth2clientinfo_t) value; + case GET_OA2CLIENTINFO: + ret = (void *) oauth2clientinfo; + break; default: if ((r = smtp_parameters (function,value)) != NULL) ret = r; if ((r = env_parameters (function,value)) != NULL) ret = r; -- cgit v1.2.3-70-g09d2