aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexey Andreyev <aa13q@ya.ru>2021-01-26 21:55:13 +0300
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commitd0d8b267753792d0310dd964b0b688d6262e6eb4 (patch)
treedb1824e835f685dd4d9438c4ac9bc5c726e92311 /lib
parent799008ddbe2414ca0bce060a4d7f6a77c04c8d10 (diff)
downloadlibquotient-d0d8b267753792d0310dd964b0b688d6262e6eb4.tar.gz
libquotient-d0d8b267753792d0310dd964b0b688d6262e6eb4.zip
Add missing reinterpret_cast for session data
Diffstat (limited to 'lib')
-rw-r--r--lib/olm/session.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/olm/session.cpp b/lib/olm/session.cpp
index a2a7d28a..e7a57677 100644
--- a/lib/olm/session.cpp
+++ b/lib/olm/session.cpp
@@ -70,8 +70,8 @@ std::unique_ptr<QOlmSession> QOlmSession::createOutboundSession(QOlmAccount &acc
QByteArray theirOneTimeKeyBuf = theirOneTimeKey.toUtf8();
const auto error = olm_create_outbound_session(olmOutboundSession,
account.data(),
- theirIdentityKeyBuf.data(), theirIdentityKeyBuf.length(),
- theirOneTimeKeyBuf.data(), theirOneTimeKeyBuf.length(),
+ reinterpret_cast<uint8_t *>(theirIdentityKeyBuf.data()), theirIdentityKeyBuf.length(),
+ reinterpret_cast<uint8_t *>(theirOneTimeKeyBuf.data()), theirOneTimeKeyBuf.length(),
reinterpret_cast<uint8_t *>(randomBuf.data()), randomBuf.length());
if (error == olm_error()) {