forked from blue/squawk
feat: wip omemo + key publish
This commit is contained in:
parent
442ad37300
commit
6c9f1ab964
13 changed files with 147 additions and 96 deletions
|
@ -6,6 +6,12 @@
|
|||
|
||||
#include <signal/signal_protocol.h>
|
||||
|
||||
#include "identity_key_store.h"
|
||||
#include "pre_key_store.h"
|
||||
#include "sender_key_store.h"
|
||||
#include "session_store.h"
|
||||
#include "signed_pre_key_store.h"
|
||||
|
||||
namespace Signal::Store {
|
||||
|
||||
class Context {
|
||||
|
@ -19,6 +25,18 @@ namespace Signal::Store {
|
|||
|
||||
private:
|
||||
signal_protocol_store_context *ctx{nullptr};
|
||||
|
||||
signal_protocol_identity_key_store iks{};
|
||||
signal_protocol_pre_key_store pks{};
|
||||
signal_protocol_sender_key_store sks{};
|
||||
signal_protocol_session_store ss{};
|
||||
signal_protocol_signed_pre_key_store spks{};
|
||||
|
||||
std::unique_ptr<IdentityKeyStore> identityKeyStore;
|
||||
std::unique_ptr<PreKeyStore> preKeyStore;
|
||||
std::unique_ptr<SenderKeyStore> senderKeyStore;
|
||||
std::unique_ptr<SessionStore> sessionStore;
|
||||
std::unique_ptr<SignedPreKeyStore> signedPreKeyStore;
|
||||
};
|
||||
|
||||
} // namespace Signal::Store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue