forked from blue/squawk
feat(omemo): add signal protocol wrappers
This commit is contained in:
parent
12ffe8e8e6
commit
2654e38665
28 changed files with 874 additions and 27 deletions
20
qomemo/signal/stores/signed_pre_key_store.h
Normal file
20
qomemo/signal/stores/signed_pre_key_store.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue