summaryrefslogtreecommitdiff
path: root/utils/mir_signal.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-19 22:28:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-19 22:28:22 +0300
commita6a0505831e4d3f91698ad995cd2ead8b47a2f2c (patch)
treed8c0a4f6a07da16144fc0c65eed62e6c9357e756 /utils/mir_signal.h
parentab99d7c226e1482c9a09771961ccabc9a60fb2cc (diff)
WhatsApp untied from libsodium
Diffstat (limited to 'utils/mir_signal.h')
-rw-r--r--utils/mir_signal.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/utils/mir_signal.h b/utils/mir_signal.h
index 95281e745c..6395cc5282 100644
--- a/utils/mir_signal.h
+++ b/utils/mir_signal.h
@@ -4,14 +4,18 @@
#include <m_system.h>
#include <m_utils.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_builder.h"
-#include "../libs/libsignal/src/session_cipher.h"
-#include "../libs/libsignal/src/signal_protocol.h"
-#include "../libs/libsignal/src/signal_protocol_types.h"
+extern "C"
+{
+ #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_builder.h"
+ #include "../libs/libsignal/src/session_cipher.h"
+ #include "../libs/libsignal/src/signal_protocol.h"
+ #include "../libs/libsignal/src/signal_protocol_types.h"
+ #include "../libs/libsignal/src/curve25519/curve25519-donna.h"
+}
struct signal_buffer
{