diff options
author | Tobias Fella <fella@posteo.de> | 2022-05-16 21:26:14 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-05-16 21:26:14 +0200 |
commit | 89d8f6c44f86a27df28b1d89a80564fb0d4d89fc (patch) | |
tree | bcc8051ed04333b4523a1ccc351630f5dba43b79 /lib/e2ee | |
parent | 6f961ff2726c87e679cc9f6c39ed27a92a31cb0d (diff) | |
download | libquotient-89d8f6c44f86a27df28b1d89a80564fb0d4d89fc.tar.gz libquotient-89d8f6c44f86a27df28b1d89a80564fb0d4d89fc.zip |
Fix build failures
Diffstat (limited to 'lib/e2ee')
-rw-r--r-- | lib/e2ee/qolmoutboundsession.cpp | 2 | ||||
-rw-r--r-- | lib/e2ee/qolmoutboundsession.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/e2ee/qolmoutboundsession.cpp b/lib/e2ee/qolmoutboundsession.cpp index 10b0c4de..76188d08 100644 --- a/lib/e2ee/qolmoutboundsession.cpp +++ b/lib/e2ee/qolmoutboundsession.cpp @@ -60,7 +60,7 @@ QOlmExpected<QByteArray> QOlmOutboundGroupSession::pickle(const PicklingMode &mo return pickledBuf; } -QOlmExpected<QOlmOutboundGroupSessionPtr> QOlmOutboundGroupSession::unpickle(QByteArray &pickled, const PicklingMode &mode) +QOlmExpected<QOlmOutboundGroupSessionPtr> QOlmOutboundGroupSession::unpickle(const QByteArray &pickled, const PicklingMode &mode) { QByteArray pickledBuf = pickled; auto *olmOutboundGroupSession = olm_outbound_group_session(new uint8_t[olm_outbound_group_session_size()]); diff --git a/lib/e2ee/qolmoutboundsession.h b/lib/e2ee/qolmoutboundsession.h index 56b25974..c20613d3 100644 --- a/lib/e2ee/qolmoutboundsession.h +++ b/lib/e2ee/qolmoutboundsession.h @@ -25,7 +25,7 @@ public: //! Deserialises from encrypted Base64 that was previously obtained by //! pickling a `QOlmOutboundGroupSession`. static QOlmExpected<QOlmOutboundGroupSessionPtr> unpickle( - QByteArray& pickled, const PicklingMode& mode); + const QByteArray& pickled, const PicklingMode& mode); //! Encrypts a plaintext message using the session. QOlmExpected<QByteArray> encrypt(const QString& plaintext); |