aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/qolmoutboundsession.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-25 22:48:53 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-29 08:21:27 +0200
commit64797165f04a16d290dd27c2f962060b40f85be3 (patch)
treed7a862543711fa5fc7876134612549fce59144cd /lib/e2ee/qolmoutboundsession.h
parentc2e9256b1c334bdadcc208429084cbc83496fb4b (diff)
downloadlibquotient-64797165f04a16d290dd27c2f962060b40f85be3.tar.gz
libquotient-64797165f04a16d290dd27c2f962060b40f85be3.zip
Refactor creation of Megolm sessions in Room
Notably, replace a multi-level hash map with QMultiHash and factor out Room::P::createOlmSession().
Diffstat (limited to 'lib/e2ee/qolmoutboundsession.h')
-rw-r--r--lib/e2ee/qolmoutboundsession.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/e2ee/qolmoutboundsession.h b/lib/e2ee/qolmoutboundsession.h
index c20613d3..9a82d22a 100644
--- a/lib/e2ee/qolmoutboundsession.h
+++ b/lib/e2ee/qolmoutboundsession.h
@@ -21,14 +21,14 @@ public:
//! Throw OlmError on errors
static QOlmOutboundGroupSessionPtr create();
//! Serialises a `QOlmOutboundGroupSession` to encrypted Base64.
- QOlmExpected<QByteArray> pickle(const PicklingMode &mode);
+ QOlmExpected<QByteArray> pickle(const PicklingMode &mode) const;
//! Deserialises from encrypted Base64 that was previously obtained by
//! pickling a `QOlmOutboundGroupSession`.
static QOlmExpected<QOlmOutboundGroupSessionPtr> unpickle(
const QByteArray& pickled, const PicklingMode& mode);
//! Encrypts a plaintext message using the session.
- QOlmExpected<QByteArray> encrypt(const QString& plaintext);
+ QOlmExpected<QByteArray> encrypt(const QString& plaintext) const;
//! Get the current message index for this session.
//!