about summary refs log tree commit diff stats
path: root/src/omemo/store.h
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-07 19:38:15 +0140
committerPaul Fariello <paul@fariello.eu>2019-04-10 17:12:31 +0200
commit23485eb4e7e2f31cb72ba03c3ec2110bafe25a36 (patch)
tree09335d95e73f71e89f31c9dcdd915acdf0b82499 /src/omemo/store.h
parent249701fe7a20247b85f4bad59158ba1215419cc3 (diff)
downloadprofani-tty-23485eb4e7e2f31cb72ba03c3ec2110bafe25a36.tar.gz
Don't trust unknown identity keys
Also add long terme storage of known identity keys.
If a key is stored it means it is trusted.
Diffstat (limited to 'src/omemo/store.h')
-rw-r--r--src/omemo/store.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/omemo/store.h b/src/omemo/store.h
index 986b7c42..03800f84 100644
--- a/src/omemo/store.h
+++ b/src/omemo/store.h
@@ -3,6 +3,7 @@
 #include "config.h"
 
 #define OMEMO_STORE_GROUP_IDENTITY "identity"
+#define OMEMO_STORE_GROUP_TRUST "trust"
 #define OMEMO_STORE_KEY_DEVICE_ID "device_id"
 #define OMEMO_STORE_KEY_REGISTRATION_ID "registration_id"
 #define OMEMO_STORE_KEY_IDENTITY_KEY_PUBLIC "identity_key_public"
@@ -12,7 +13,7 @@ typedef struct {
    signal_buffer *public;
    signal_buffer *private;
    uint32_t registration_id;
-   GHashTable * identity_key_store;
+   GHashTable *trusted;
 } identity_key_store_t;
 
 GHashTable * session_store_new(void);