From 97ba0b94c5da04f0d03945baa21c338c77c9dc20 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Jan 2015 22:07:28 +0000 Subject: - correct writing of tokens, especially extended - further code optimizations git-svn-id: http://svn.miranda-ng.org/main/trunk@11911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/WALogin.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/WALogin.h') diff --git a/protocols/WhatsApp/src/WhatsAPI++/WALogin.h b/protocols/WhatsApp/src/WhatsAPI++/WALogin.h index ab1e13472b..440f34f71b 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WALogin.h +++ b/protocols/WhatsApp/src/WhatsAPI++/WALogin.h @@ -44,16 +44,14 @@ public: class WALogin { private: static const std::string NONCE_KEY; - WAConnection* connection; - BinTreeNodeReader* inn; - BinTreeNodeWriter* out; + WAConnection *connection; std::vector* getAuthBlob(const std::vector& nonce); void sendResponse(const std::vector& challengeData); void sendFeatures(); void sendAuth(const std::vector& nonce); std::vector* readFeaturesUntilChallengeOrSuccess(); - void parseSuccessNode(ProtocolTreeNode* node); + void parseSuccessNode(ProtocolTreeNode *node); std::vector readSuccess(); public: @@ -61,12 +59,10 @@ public: int account_kind; std::string password; - WALogin(WAConnection* connection, BinTreeNodeReader *reader, BinTreeNodeWriter *writer, const std::string& password); + WALogin(WAConnection* connection, const std::string& password); ~WALogin(); std::vector* login(const std::vector& blobLength); - BinTreeNodeReader *getTreeNodeReader(); - BinTreeNodeWriter *getTreeNodeWriter(); }; #endif /* WALOGIN_H_ */ -- cgit v1.2.3