diff options
author | Alexey Andreyev <aa13q@ya.ru> | 2021-01-26 21:55:13 +0300 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:34:52 +0100 |
commit | d0d8b267753792d0310dd964b0b688d6262e6eb4 (patch) | |
tree | db1824e835f685dd4d9438c4ac9bc5c726e92311 /lib | |
parent | 799008ddbe2414ca0bce060a4d7f6a77c04c8d10 (diff) | |
download | libquotient-d0d8b267753792d0310dd964b0b688d6262e6eb4.tar.gz libquotient-d0d8b267753792d0310dd964b0b688d6262e6eb4.zip |
Add missing reinterpret_cast for session data
Diffstat (limited to 'lib')
-rw-r--r-- | lib/olm/session.cpp | 4 |
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()) { |