diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-31 19:16:23 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-31 19:16:23 +0200 |
commit | ec75d2d0e9601dcf32387120ca67135ac7e7f472 (patch) | |
tree | 146484ece089a8293dc30505b0c2380374e5fac7 /lib/e2ee/qolmsession.cpp | |
parent | 945b1ab33c92b7b13e2c6b6ebc1f56c5caee0f79 (diff) | |
parent | a7c43995c3a47bbbac8d862f69f9229eb39f4ed6 (diff) | |
download | libquotient-ec75d2d0e9601dcf32387120ca67135ac7e7f472.tar.gz libquotient-ec75d2d0e9601dcf32387120ca67135ac7e7f472.zip |
Merge branch 'dev' into update-api-update
Diffstat (limited to 'lib/e2ee/qolmsession.cpp')
-rw-r--r-- | lib/e2ee/qolmsession.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/e2ee/qolmsession.cpp b/lib/e2ee/qolmsession.cpp index 2b149aac..2a98d5d8 100644 --- a/lib/e2ee/qolmsession.cpp +++ b/lib/e2ee/qolmsession.cpp @@ -96,12 +96,13 @@ QOlmExpected<QOlmSessionPtr> QOlmSession::createOutboundSession( return std::make_unique<QOlmSession>(olmOutboundSession); } -QOlmExpected<QByteArray> QOlmSession::pickle(const PicklingMode &mode) +QOlmExpected<QByteArray> QOlmSession::pickle(const PicklingMode &mode) const { QByteArray pickledBuf(olm_pickle_session_length(m_session), '0'); QByteArray key = toKey(mode); const auto error = olm_pickle_session(m_session, key.data(), key.length(), - pickledBuf.data(), pickledBuf.length()); + pickledBuf.data(), + pickledBuf.length()); if (error == olm_error()) { return lastError(m_session); |