summaryrefslogtreecommitdiff
path: root/imap/src/c-client/oauth2_aux.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-08-09 22:10:53 -0600
committerEduardo Chappa <chappa@washington.edu>2021-08-09 22:10:53 -0600
commit264838d76655e50d5bfda25425de4bfca044d839 (patch)
treef603966839bf10c9b00ae86d20d6450800791f5e /imap/src/c-client/oauth2_aux.c
parent8167f58e118afa658590253f8696c816511c3708 (diff)
downloadalpine-264838d76655e50d5bfda25425de4bfca044d839.tar.xz
* Update to json code to simplify it.
Diffstat (limited to 'imap/src/c-client/oauth2_aux.c')
-rw-r--r--imap/src/c-client/oauth2_aux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/imap/src/c-client/oauth2_aux.c b/imap/src/c-client/oauth2_aux.c
index 9d9fa304..bb4ddbcf 100644
--- a/imap/src/c-client/oauth2_aux.c
+++ b/imap/src/c-client/oauth2_aux.c
@@ -161,7 +161,7 @@ mm_login_oauth2_c_client_method (NETMBX *mb, char *user, char *method,
json = oauth2_json_reply(oauth2->server_mthd[OA2_GetDeviceCode], oauth2, &status);
if(json != NULL){
- JSON_X *jx;
+ JSON_S *jx;
json_assign ((void **) &oauth2->devicecode.device_code, json, "device_code", JString);
json_assign ((void **) &oauth2->devicecode.user_code, json, "user_code", JString);
@@ -201,7 +201,7 @@ mm_login_oauth2_c_client_method (NETMBX *mb, char *user, char *method,
json = oauth2_json_reply(oauth2->server_mthd[OA2_GetAccessTokenFromRefreshToken], oauth2, &status);
if(json != NULL){
- JSON_X *jx;
+ JSON_S *jx;
switch(status){
case HTTP_UNAUTHORIZED:
@@ -263,7 +263,7 @@ mm_login_oauth2_c_client_method (NETMBX *mb, char *user, char *method,
json = oauth2_json_reply(oauth2->server_mthd[OA2_GetAccessTokenFromAccessCode], oauth2, &status);
if(json != NULL){
- JSON_X *jx;
+ JSON_S *jx;
switch(status){
case HTTP_OK : json_assign ((void **) &oauth2->param[OA2_RefreshToken].value, json, "refresh_token", JString);
@@ -320,7 +320,7 @@ void oauth2deviceinfo_get_accesscode(void *inp, void *outp)
json = oauth2_json_reply(oauth2->server_mthd[OA2_GetAccessTokenFromAccessCode], oauth2, &status);
if(json != NULL){
- JSON_X *jx;
+ JSON_S *jx;
char *error = NIL;
switch(status){