diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2015-10-19 23:49:45 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2015-10-19 23:49:45 +0000 |
commit | 1f9219eb0abc61710a0ed5ddf0b23877be08360d (patch) | |
tree | f01701f493132a3fa0abbc20db581987456d9b69 /protocols/MSN/src/msn_proto.h | |
parent | 53fe38bb0e7f94a58c3e4edc21581fdd4c5b3e5e (diff) |
MSN: Periodically refresh OAuth so that connection doesn't timeout with error 922 after 24 hours.
git-svn-id: http://svn.miranda-ng.org/main/trunk@15573 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_proto.h')
-rw-r--r-- | protocols/MSN/src/msn_proto.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/MSN/src/msn_proto.h b/protocols/MSN/src/msn_proto.h index d5dc0d0152..528be998a8 100644 --- a/protocols/MSN/src/msn_proto.h +++ b/protocols/MSN/src/msn_proto.h @@ -118,10 +118,10 @@ struct CMsnProto : public PROTO<CMsnProto> char *authStorageToken;
char *hotSecretToken, *hotAuthToken;
char *authUser, *authUIC, *authCookies, *authSSLToken, *authAccessToken, *authRefreshToken, *authSkypeComToken, *authSkypeToken;
- bool bAskingForAuth;
+ bool bAskingForAuth, bPassportAuth;
int authMethod;
time_t authTokenExpiretime;
- bool bSentBND;
+ bool bSentBND, bIgnoreATH;
char *abCacheKey, *sharingCacheKey, *storageCacheKey;
@@ -278,6 +278,7 @@ struct CMsnProto : public PROTO<CMsnProto> void __cdecl msn_keepAliveThread(void* arg);
void __cdecl msn_loginThread(void* arg);
void __cdecl msn_IEAuthThread(void* arg);
+ void __cdecl msn_refreshOAuthThread(void*);
void __cdecl MSNServerThread(void* arg);
void __cdecl MsnFileAckThread(void* arg);
@@ -499,6 +500,8 @@ struct CMsnProto : public PROTO<CMsnProto> int LoginSkypeOAuth(const char *pRefreshToken);
bool RefreshOAuth(const char *pszRefreshToken, const char *pszService, char *pszAccessToken, char *pszOutRefreshToken=NULL, time_t *ptExpires=NULL);
int MSN_AuthOAuth(void);
+ int MSN_RefreshOAuthTokens(void);
+ void MSN_SendATH(ThreadData* info);
CMStringA HotmailLogin(const char* url);
void FreeAuthTokens(void);
int GetMyNetID(void);
|