From 79aeffd07b1211308c5f80150837aff3523fe936 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 17 Jul 2021 19:48:24 +0300 Subject: =?UTF-8?q?fixes=20#2934=20(MRA:=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BF=D0=BE=20=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=D0=B8=D0=BD=D1=83-=D0=BF=D0=B0=D1=80=D0=BE=D0=BB?= =?UTF-8?q?=D1=8E=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/ICQ-WIM/src/proto.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'protocols/ICQ-WIM/src/proto.h') diff --git a/protocols/ICQ-WIM/src/proto.h b/protocols/ICQ-WIM/src/proto.h index 3a5666b9f2..c6f0ff9502 100644 --- a/protocols/ICQ-WIM/src/proto.h +++ b/protocols/ICQ-WIM/src/proto.h @@ -33,6 +33,7 @@ #include "m_system.h" #include "m_protoint.h" +#define MRA_APP_ID "ic1pzYNtEU6dDnEQ" #define ICQ_APP_ID "ic1nmMjqg7Yu-0hL" #define ICQ_API_SERVER "https://u.icq.net/api/v17/wim" #define ICQ_FILE_SERVER "https://u.icq.net/files/api/v1.1" @@ -247,7 +248,7 @@ class CIcqProto : public PROTO friend AsyncHttpRequest* operator <<(AsyncHttpRequest*, const AIMSID&); - bool m_bOnline, m_bTerminated, m_bFirstBos; + bool m_bOnline, m_bTerminated, m_bFirstBos, m_isMra, m_bError462; int m_iTimeShift; MCONTACT CheckOwnMessage(const CMStringA &reqId, const CMStringA &msgId, bool bRemove); @@ -261,6 +262,7 @@ class CIcqProto : public PROTO bool RetrievePassword(); void RetrieveUserHistory(MCONTACT, __int64 startMsgId, bool bCreateRead); void RetrieveUserInfo(MCONTACT = INVALID_CONTACT_ID); + void SendMrimLogin(NETLIBHTTPREQUEST *pReply); void SetServerStatus(int iNewStatus); void ShutdownSession(void); void StartSession(void); @@ -287,6 +289,9 @@ class CIcqProto : public PROTO void OnAddBuddy(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq); void OnAddClient(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq); + void OnCheckMraAuth(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq); + void OnCheckMraAuthFinal(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq); + void OnCheckMrimLogin(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq); void OnCheckPassword(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq); void OnCheckPhone(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq); void OnFetchEvents(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq); @@ -329,6 +334,7 @@ class CIcqProto : public PROTO CMStringA m_szRToken; CMStringA m_fetchBaseURL; CMStringA m_aimsid; + CMStringA m_szMraCookie; LONG m_msgId = 1; int m_iRClientId; HGENMENU m_hUploadGroups; -- cgit v1.2.3