diff options
author | Nicolas Werner <nicolas.werner@ymail.com> | 2022-04-08 01:53:00 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@ymail.com> | 2022-04-08 01:53:00 +0200 |
commit | 66b7ff639c73c46cbedeb710ffc88887bc39517e (patch) | |
tree | bd368403ee16a05a4b5ff9558129bd671df06e36 /src/CacheCryptoStructs.h | |
parent | Translated using Weblate (Finnish) (diff) | |
download | nheko-66b7ff639c73c46cbedeb710ffc88887bc39517e.tar.xz |
Remove sender key from megolm session index
implements MSC3700 see https://github.com/matrix-org/matrix-spec-proposals/pull/3700
Diffstat (limited to 'src/CacheCryptoStructs.h')
-rw-r--r-- | src/CacheCryptoStructs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CacheCryptoStructs.h b/src/CacheCryptoStructs.h index ee352c6b..6c32667e 100644 --- a/src/CacheCryptoStructs.h +++ b/src/CacheCryptoStructs.h @@ -53,6 +53,9 @@ struct GroupSessionData // TODO(Nico): What about forwards? They might come from key backup? bool trusted = true; + // the original 25519 key + std::string sender_key; + std::string sender_claimed_ed25519_key; std::vector<std::string> forwarding_curve25519_key_chain; @@ -93,15 +96,12 @@ struct MegolmSessionIndex MegolmSessionIndex(std::string room_id_, const mtx::events::msg::Encrypted &e) : room_id(std::move(room_id_)) , session_id(e.session_id) - , sender_key(e.sender_key) {} //! The room in which this session exists. std::string room_id; //! The session_id of the megolm session. std::string session_id; - //! The curve25519 public key of the sender. - std::string sender_key; }; void |