diff options
Diffstat (limited to 'protocols/WhatsAppWeb/src/stdafx.h')
-rw-r--r-- | protocols/WhatsAppWeb/src/stdafx.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/protocols/WhatsAppWeb/src/stdafx.h b/protocols/WhatsAppWeb/src/stdafx.h index 82f1e715c0..34c6f485c8 100644 --- a/protocols/WhatsAppWeb/src/stdafx.h +++ b/protocols/WhatsAppWeb/src/stdafx.h @@ -46,7 +46,9 @@ Copyright © 2019 George Hazan #include <openssl/hmac.h> #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" struct signal_buffer @@ -55,6 +57,22 @@ struct signal_buffer 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 "proto.h" #include "resource.h" |