summaryrefslogtreecommitdiff
path: root/imap/src/c-client/oauth2_aux.h
blob: dd41e4d8a1661cef19bda0427c5ffbeecbe66acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * ========================================================================
 * Copyright 2013-2022 Eduardo Chappa
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *      
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * ========================================================================
 */
#ifndef C_CLIENT_OAUTH2_AUX_INCLUDED
#define C_CLIENT_OAUTH2_AUX_INCLUDED

#define OA2_CODE_WAIT		1
#define OA2_CODE_FAIL		-1
#define OA2_CODE_SUCCESS	0

void mm_login_oauth2_c_client_method (NETMBX *, char *, char *, OAUTH2_S *, unsigned long, int *);
void oauth2deviceinfo_get_accesscode(void *, void *);

#endif /* C_CLIENT_OAUTH2_AUX_INCLUDED */