summary refs log tree commit diff
path: root/src/CacheCryptoStructs.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-08-07 23:54:35 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-08-07 23:54:35 +0200
commitb73bd2859ca9c3209f6da9c29346b95548b6b8c9 (patch)
tree1ebcab718c40c77b2ca546fca96e24739197a173 /src/CacheCryptoStructs.h
parentShow encryption errors in qml and add request keys button (diff)
downloadnheko-b73bd2859ca9c3209f6da9c29346b95548b6b8c9.tar.xz
Protect against replay attacks
Diffstat (limited to 'src/CacheCryptoStructs.h')
-rw-r--r--src/CacheCryptoStructs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CacheCryptoStructs.h b/src/CacheCryptoStructs.h
index 409c9d67..69d64885 100644
--- a/src/CacheCryptoStructs.h
+++ b/src/CacheCryptoStructs.h
@@ -50,6 +50,9 @@ struct GroupSessionData
         std::string sender_claimed_ed25519_key;
         std::vector<std::string> forwarding_curve25519_key_chain;
 
+        //! map from index to event_id to check for replay attacks
+        std::map<uint32_t, std::string> indices;
+
         // who has access to this session.
         // Rotate, when a user leaves the room and share, when a user gets added.
         SharedWithUsers currently;