aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()) {