feat(omemo): add signal protocol wrappers

This commit is contained in:
vae 2021-05-13 17:50:29 +03:00
parent 12ffe8e8e6
commit 2654e38665
Signed by: vae
GPG key ID: A9A33351400E00E5
28 changed files with 874 additions and 27 deletions

View file

@ -0,0 +1,20 @@
/*
* Created by victoria on 2021-05-13.
*/
#pragma once
#include <signal/signal_protocol.h>
namespace Signal::Store {
class SignedPreKeyStore {
public:
static void boundToContext(signal_protocol_store_context *ctx);
int loadSignedPreKey(signal_buffer **record, uint32_t signed_pre_key_id);
int storeSignedPreKey(uint32_t signed_pre_key_id, uint8_t *record, size_t record_len);
int containsSignedPreKey(uint32_t signed_pre_key_id);
int removeSignedPreKey(uint32_t signed_pre_key_id);
};
} // namespace Signal::Store