summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-05-20 21:07:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-20 21:07:04 +0300
commitf81688b2ca172fd4d39f365d26d2a0efa3c613f6 (patch)
tree04199731bdc5f54685a832ee8a4d902d11bc1c6f /protocols/MSN/src/msn_proto.h
parent26e399a134e9c891ad6e8a2f59a0b6216b28169b (diff)
MSN: crash fix for extra-long auth tokens
Diffstat (limited to 'protocols/MSN/src/msn_proto.h')
-rw-r--r--protocols/MSN/src/msn_proto.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/MSN/src/msn_proto.h b/protocols/MSN/src/msn_proto.h
index 9aeb60b56b..3db4644cbd 100644
--- a/protocols/MSN/src/msn_proto.h
+++ b/protocols/MSN/src/msn_proto.h
@@ -489,17 +489,16 @@ struct CMsnProto : public PROTO<CMsnProto>
int MSN_GetPassportAuth(void);
int MSN_SkypeAuth(const char *pszNonce, char *pszUIC);
- int MSN_DoOAuth(void);
char* GenerateLoginBlob(char* challenge);
void LoadAuthTokensDB(void);
void SaveAuthTokensDB(void);
- bool parseLoginPage(char *pszHTML, NETLIBHTTPREQUEST *nlhr, CMStringA *post);
+ bool parseLoginPage(char *pszHTML, NETLIBHTTPREQUEST *nlhr, CMStringA *post);
int LoginSkypeOAuth(const char *pRefreshToken);
- bool RefreshOAuth(const char *pszRefreshToken, const char *pszService, char *pszAccessToken, char *pszOutRefreshToken=NULL, time_t *ptExpires=NULL);
+ bool RefreshOAuth(const char *pszRefreshToken, const char *pszService, CMStringA *pszAccessToken, CMStringA *pszOutRefreshToken, time_t *ptExpires);
int MSN_AuthOAuth(void);
- int MSN_RefreshOAuthTokens(bool bJustCheck);
- void MSN_SendATH(ThreadData* info);
- CMStringA HotmailLogin(const char* url);
+ int MSN_RefreshOAuthTokens(bool bJustCheck);
+ void MSN_SendATH(ThreadData *info);
+ CMStringA HotmailLogin(const char *url);
void FreeAuthTokens(void);
int GetMyNetID(void);
LPCSTR GetMyUsername(int netId);