summaryrefslogtreecommitdiff
path: root/protocols/WhatsAppWeb/src/stdafx.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-06 17:15:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-06 17:15:01 +0300
commit732d51e59bcf30e22b991f2daf25095c2a146941 (patch)
treea15e8c90eb6e9b7e58c800c8bee5db8a6ea8cc25 /protocols/WhatsAppWeb/src/stdafx.h
parent8f7bb7e2d0317146e03f533e77c8da539209d7d2 (diff)
mir_signal: C++ helper to get rid of tons code in C
Diffstat (limited to 'protocols/WhatsAppWeb/src/stdafx.h')
-rw-r--r--protocols/WhatsAppWeb/src/stdafx.h33
1 files changed, 2 insertions, 31 deletions
diff --git a/protocols/WhatsAppWeb/src/stdafx.h b/protocols/WhatsAppWeb/src/stdafx.h
index bbcda15825..5c6698d56e 100644
--- a/protocols/WhatsAppWeb/src/stdafx.h
+++ b/protocols/WhatsAppWeb/src/stdafx.h
@@ -51,18 +51,11 @@ Copyright © 2019-22 George Hazan
#include <openssl/kdf.h>
#include "../../libs/libqrencode/src/qrencode.h"
-
-#include "../../libs/libsignal/src/curve.h"
-#include "../../libs/libsignal/src/hkdf.h"
-#include "../../libs/libsignal/src/key_helper.h"
-#include "../../libs/libsignal/src/protocol.h"
-#include "../../libs/libsignal/src/session_cipher.h"
-#include "../../libs/libsignal/src/signal_protocol.h"
-
#include "../../libs/libsodium/src/include/sodium.h"
-
#include "../../libs/zlib/src/zlib.h"
+#include "../../utils/mir_signal.h"
+
/////////////////////////////////////////////////////////////////////////////////////////
// to obtain protobuf library do the following
// - install vcpkg (https://github.com/microsoft/vcpkg);
@@ -79,28 +72,6 @@ using namespace google::protobuf;
/////////////////////////////////////////////////////////////////////////////////////////
-struct signal_buffer
-{
- size_t len;
- uint8_t data[];
-};
-
-struct signal_type_base
-{
- unsigned int ref_count = 0;
- void (*destroy)(signal_type_base *instance) = 0;
-};
-
-struct ec_public_key : public signal_type_base
-{
- uint8_t data[32];
-};
-
-struct ec_private_key : public signal_type_base
-{
- uint8_t data[32];
-};
-
#include "db.h"
#include "utils.h"
#include "proto.h"