summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-11-17 18:38:47 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-11-17 18:38:47 +0300
commit6d4ab3925c39c234cefd6b6145eb98c169693681 (patch)
tree99d37f497b0f1867d9161e58b92201648db75a7c /protocols/WhatsApp/src/proto.h
parentec6ddc5feabf87a067ea22bea943befb169a8684 (diff)
WhatsApp: fix for reading own keys
Diffstat (limited to 'protocols/WhatsApp/src/proto.h')
-rw-r--r--protocols/WhatsApp/src/proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/proto.h b/protocols/WhatsApp/src/proto.h
index 4f52f0409e..36ecbfcbf9 100644
--- a/protocols/WhatsApp/src/proto.h
+++ b/protocols/WhatsApp/src/proto.h
@@ -169,6 +169,8 @@ class MSignalStore
signal_context *m_pContext;
signal_protocol_store_context *m_pStore;
+ void importPublicKey(ec_public_key **result, MBinBuffer &buf);
+
public:
PROTO_INTERFACE *pProto;
const char *prefix;
@@ -195,6 +197,7 @@ public:
MSignalSession* createSession(const CMStringA &szName, int deviceId);
MSignalSession* getSession(const signal_protocol_address *address);
+ void injectSession(const WANode *pNode);
MBinBuffer decryptSignalProto(const CMStringA &from, const char *pszType, const MBinBuffer &encrypted);
MBinBuffer decryptGroupSignalProto(const CMStringA &from, const CMStringA &author, const MBinBuffer &encrypted);
@@ -350,6 +353,7 @@ class WhatsAppProto : public PROTO<WhatsAppProto>
void OnIqDoNothing(const WANode &node);
void OnIqGcGetAllMetadata(const WANode &node);
void OnIqGetAvatar(const WANode &node);
+ void OnIqGetKeys(const WANode &node);
void OnIqGetUsync(const WANode &node);
void OnIqPairDevice(const WANode &node);
void OnIqPairSuccess(const WANode &node);