summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/WALogin.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-25 22:07:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-25 22:07:28 +0000
commit97ba0b94c5da04f0d03945baa21c338c77c9dc20 (patch)
tree55d1b4c131a616b8c660128c70418df95de99b90 /protocols/WhatsApp/src/WhatsAPI++/WALogin.h
parent4b9da6b7ea643ac4917440880583d507b697cf9a (diff)
- 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
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/WALogin.h')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/WALogin.h10
1 files changed, 3 insertions, 7 deletions
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<unsigned char>* getAuthBlob(const std::vector<unsigned char>& nonce);
void sendResponse(const std::vector<unsigned char>& challengeData);
void sendFeatures();
void sendAuth(const std::vector<unsigned char>& nonce);
std::vector<unsigned char>* readFeaturesUntilChallengeOrSuccess();
- void parseSuccessNode(ProtocolTreeNode* node);
+ void parseSuccessNode(ProtocolTreeNode *node);
std::vector<unsigned char> 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<unsigned char>* login(const std::vector<unsigned char>& blobLength);
- BinTreeNodeReader *getTreeNodeReader();
- BinTreeNodeWriter *getTreeNodeWriter();
};
#endif /* WALOGIN_H_ */