diff --git a/src/chat/chat_attachment.c b/src/chat/chat_attachment.c index 395a03d4..114d8c3d 100644 --- a/src/chat/chat_attachment.c +++ b/src/chat/chat_attachment.c @@ -6,7 +6,7 @@ #include "chat_feedback.h" #include "member_sync.h" #include "../utun_instance.h" -#include "../transport_layer/etcp_connections.h" +#include "../transport_layer/etcp.h" #include "../routing_layer/etcp_router.h" #include "../routing_layer/topo_node_sqlite.h" #include "../media_delivery/media_index.h" diff --git a/src/dm/dm_crypto.h b/src/dm/dm_crypto.h index 1334075a..782c9328 100644 --- a/src/dm/dm_crypto.h +++ b/src/dm/dm_crypto.h @@ -14,6 +14,10 @@ #include #include "../media_async/media_crypto.h" +#ifdef __cplusplus +extern "C" { +#endif + #define DM_CONTENT_KEY_SIZE 32 #define DM_NONCE_SIZE 13 /* AES-CCM требует ровно 13 байт */ @@ -35,4 +39,8 @@ int dm_derive_content_key(const uint8_t my_priv[32], const uint8_t peer_pub[32], * не пересекается между направлениями (author различается). */ void dm_build_nonce(uint64_t conv_id, uint64_t author, uint64_t seq, uint8_t nonce[DM_NONCE_SIZE]); +#ifdef __cplusplus +} +#endif + #endif /* DM_CRYPTO_H */