summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-18 12:56:47 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-18 12:56:47 +0300
commit604cdcec8abf8a8c564111d6f55feaf94486ba6c (patch)
tree89501231f6f57e6ba9a7a3a8bf63ab025a325c8e /include
parentImprove logging a bit (diff)
downloadnheko-604cdcec8abf8a8c564111d6f55feaf94486ba6c.tar.xz
Save the olm account after we create new one-time keys
Otherwise after a restart the old account will be loaded and we
won't be able to decrypt messages from devices using the new one-time keys.

Also new one-time key upload requests will fail due to conflicts with
the existing keys with the same keyid.
Diffstat (limited to 'include')
-rw-r--r--include/Olm.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Olm.hpp b/include/Olm.hpp
index 6f871628..eb7f9061 100644
--- a/include/Olm.hpp
+++ b/include/Olm.hpp
@@ -75,4 +75,7 @@ encrypt_group_message(const std::string &room_id,
                       const std::string &device_id,
                       const std::string &body);
 
+void
+mark_keys_as_published();
+
 } // namespace olm