/* WhatsAppWeb plugin for Miranda NG Copyright © 2019-22 George Hazan */ #pragma once #pragma warning(disable:4996 4290 4200) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "../../libs/libqrencode/src/qrencode.h" #include "../../libs/libsignal/src/curve.h" #include "../../libs/libsignal/src/hkdf.h" #include "../../libs/libsignal/src/signal_protocol.h" ///////////////////////////////////////////////////////////////////////////////////////// // to obtain protobuf library do the following // - install vcpkg (https://github.com/microsoft/vcpkg); // - install static libraries of protobuf: // >vcpkg.exe install protobuf:x86-windows-static-md // >vcpkg.exe install protobuf:x64-windows-static-md #include "google/protobuf/message.h" ///////////////////////////////////////////////////////////////////////////////////////// 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" #include "resource.h" #include "pmsg.pb.h" #pragma comment(lib, "libcrypto.lib")