summaryrefslogtreecommitdiff
path: root/imap/src/c-client/mail.h
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-01-15 12:42:06 -0700
committerEduardo Chappa <chappa@washington.edu>2020-01-15 12:42:06 -0700
commit9822842646bc2b940d4b98a260ee4e3ac26fce57 (patch)
tree9d468eb7a6d6b3a41c6c8cd7d542009cb498bc5b /imap/src/c-client/mail.h
parent36fcd566e99d76543c28ce985fc71e8a7cfb6c83 (diff)
downloadalpine-9822842646bc2b940d4b98a260ee4e3ac26fce57.tar.xz
* Add configuration screen for XOAUTH, so users can configure their own
client-id and client-secret information.
Diffstat (limited to 'imap/src/c-client/mail.h')
-rw-r--r--imap/src/c-client/mail.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/imap/src/c-client/mail.h b/imap/src/c-client/mail.h
index b5cd65d2..4cb35133 100644
--- a/imap/src/c-client/mail.h
+++ b/imap/src/c-client/mail.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2016-2018 Eduardo Chappa
+ * Copyright 2016-2020 Eduardo Chappa
*
* Last Edited: July 21, 2018 Eduardo Chappa <chappa@washington.edu>
*
@@ -156,6 +156,8 @@
#define SET_IDSTREAM (long) 168
#define GET_OA2CLIENTGETACCESSCODE (long) 169
#define SET_OA2CLIENTGETACCESSCODE (long) 170
+#define GET_OA2CLIENTINFO (long) 171
+#define SET_OA2CLIENTINFO (long) 172
/* 2xx: environment */
#define GET_USERNAME (long) 201
@@ -1939,7 +1941,7 @@ typedef struct OA2_serverparam_s {
} OAUTH2_SERVER_METHOD_S;
typedef struct oauth2_s {
- char *name; /* provider name */
+ unsigned char *name; /* provider name */
char *host[OAUTH2_TOT_EQUIV]; /* servers for which this data applies */
OAUTH2_PARAM_S param[OA2_End]; /* parameters name and values for this server */
/* servers, methods and parameters to retrieve access code and tokens */
@@ -1949,3 +1951,5 @@ typedef struct oauth2_s {
} OAUTH2_S;
typedef char *(*oauth2getaccesscode_t) (char *url, OAUTH2_S *, int *);
+typedef void *(*oauth2clientinfo_t)(char *name, char **id, char **secret);
+