summary refs log tree commit diff
path: root/src/CacheCryptoStructs.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-10-20 23:12:51 +0200
committerGitHub <noreply@github.com>2020-10-20 23:12:51 +0200
commitb977c1e621149b58d775793b17964bdcd118e400 (patch)
tree5fbb294741e4732907fd0a214fb8ddaa0232cce1 /src/CacheCryptoStructs.h
parentActually forward keys using m.forwared_room_key (diff)
parentFix corrupt channel + add additional debugging (diff)
downloadnheko-b977c1e621149b58d775793b17964bdcd118e400.tar.xz
Merge pull request #305 from Nheko-Reborn/encrypted_device_messages
Encrypted device messages
Diffstat (limited to 'src/CacheCryptoStructs.h')
-rw-r--r--src/CacheCryptoStructs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/CacheCryptoStructs.h b/src/CacheCryptoStructs.h

index 935d6493..a693e233 100644 --- a/src/CacheCryptoStructs.h +++ b/src/CacheCryptoStructs.h
@@ -66,6 +66,16 @@ struct OlmSessionStorage std::mutex group_inbound_mtx; }; +struct StoredOlmSession +{ + std::uint64_t last_message_ts = 0; + std::string pickled_session; +}; +void +to_json(nlohmann::json &obj, const StoredOlmSession &msg); +void +from_json(const nlohmann::json &obj, StoredOlmSession &msg); + //! Verification status of a single user struct VerificationStatus {