aboutsummaryrefslogtreecommitdiff
path: root/lib/olm/qolminboundsession.h
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-24 20:54:30 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commitdca69e8326ce6fd0374123ad8c167a2b0051d8fb (patch)
treee1cfd169f36a30b957b5f9ba8a2593def0abca39 /lib/olm/qolminboundsession.h
parent723038cb3fe16c3f0078d00362fcb53c10f9eb4a (diff)
downloadlibquotient-dca69e8326ce6fd0374123ad8c167a2b0051d8fb.tar.gz
libquotient-dca69e8326ce6fd0374123ad8c167a2b0051d8fb.zip
Add group session decrypt/encrypt test and fix bug found by it
Diffstat (limited to 'lib/olm/qolminboundsession.h')
-rw-r--r--lib/olm/qolminboundsession.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/olm/qolminboundsession.h b/lib/olm/qolminboundsession.h
index ccc53ba8..eb698868 100644
--- a/lib/olm/qolminboundsession.h
+++ b/lib/olm/qolminboundsession.h
@@ -31,7 +31,7 @@ public:
//! an `OlmInboundGroupSession`.
static std::variant<std::unique_ptr<QOlmInboundGroupSession>, OlmError> unpickle(QByteArray &picked, const PicklingMode &mode);
//! Decrypts ciphertext received for this group session.
- std::variant<std::pair<QString, uint32_t>, OlmError> decrypt(QString &message);
+ std::variant<std::pair<QString, uint32_t>, OlmError> decrypt(const QByteArray &message);
//! Export the base64-encoded ratchet key for this session, at the given index,
//! in a format which can be used by import.
std::variant<QByteArray, OlmError> exportSession(uint32_t messageIndex);
@@ -44,5 +44,7 @@ public:
private:
OlmInboundGroupSession *m_groupSession;
};
+
+using QOlmInboundGroupSessionPtr = std::unique_ptr<QOlmInboundGroupSession>;
} // namespace Quotient
#endif