summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_proto.h
diff options
context:
space:
mode:
authorPiotr Piastucki <leech.miranda@gmail.com>2015-10-27 21:27:58 +0000
committerPiotr Piastucki <leech.miranda@gmail.com>2015-10-27 21:27:58 +0000
commit340386821c6b9e3c2e7b2cde0ec9e082efebcaec (patch)
tree42ff66fcf8cdbf76523fd7433cac738343e2c4d6 /protocols/MSN/src/msn_proto.h
parent239519030ec3cd6cf571ab79348596be0cb8eeeb (diff)
- MSN: Managing and refreshing OAuth tokens with different expiration times.
git-svn-id: http://svn.miranda-ng.org/main/trunk@15627 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_proto.h')
-rw-r--r--protocols/MSN/src/msn_proto.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/protocols/MSN/src/msn_proto.h b/protocols/MSN/src/msn_proto.h
index 528be998a8..2bc9a24bff 100644
--- a/protocols/MSN/src/msn_proto.h
+++ b/protocols/MSN/src/msn_proto.h
@@ -113,14 +113,13 @@ struct CMsnProto : public PROTO<CMsnProto>
// Security Tokens
char *pAuthToken, *tAuthToken;
char *oimSendToken;
- char *authStrToken, *authSecretToken;
- char *authContactToken;
- char *authStorageToken;
+ char *authSecretToken;
+ OAuthToken authStrToken, authContactToken, authStorageToken, authSSLToken, authSkypeComToken;
+ SkypeToken authSkypeToken;
char *hotSecretToken, *hotAuthToken;
- char *authUser, *authUIC, *authCookies, *authSSLToken, *authAccessToken, *authRefreshToken, *authSkypeComToken, *authSkypeToken;
+ char *authUser, *authUIC, *authCookies, *authRefreshToken;
bool bAskingForAuth, bPassportAuth;
int authMethod;
- time_t authTokenExpiretime;
bool bSentBND, bIgnoreATH;
char *abCacheKey, *sharingCacheKey, *storageCacheKey;
@@ -500,12 +499,11 @@ 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);
+ int MSN_RefreshOAuthTokens(bool bJustCheck);
void MSN_SendATH(ThreadData* info);
CMStringA HotmailLogin(const char* url);
void FreeAuthTokens(void);
int GetMyNetID(void);
- const char *GetSkypeToken(bool bAsAuthHeader);
LPCSTR GetMyUsername(int netId);
/////////////////////////////////////////////////////////////////////////////////////////