aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee
diff options
context:
space:
mode:
Diffstat (limited to 'lib/e2ee')
-rw-r--r--lib/e2ee/qolmaccount.cpp6
-rw-r--r--lib/e2ee/qolmaccount.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/e2ee/qolmaccount.cpp b/lib/e2ee/qolmaccount.cpp
index c3714363..cd10f165 100644
--- a/lib/e2ee/qolmaccount.cpp
+++ b/lib/e2ee/qolmaccount.cpp
@@ -145,9 +145,11 @@ size_t QOlmAccount::generateOneTimeKeys(size_t numberOfKeys)
UnsignedOneTimeKeys QOlmAccount::oneTimeKeys() const
{
const size_t oneTimeKeyLength = olm_account_one_time_keys_length(m_account);
- QByteArray oneTimeKeysBuffer(oneTimeKeyLength, '0');
+ QByteArray oneTimeKeysBuffer(static_cast<int>(oneTimeKeyLength), '0');
- const auto error = olm_account_one_time_keys(m_account, oneTimeKeysBuffer.data(), oneTimeKeyLength);
+ const auto error = olm_account_one_time_keys(m_account,
+ oneTimeKeysBuffer.data(),
+ oneTimeKeyLength);
if (error == olm_error()) {
throw lastError(m_account);
}
diff --git a/lib/e2ee/qolmaccount.h b/lib/e2ee/qolmaccount.h
index 23fe58dd..f2a31314 100644
--- a/lib/e2ee/qolmaccount.h
+++ b/lib/e2ee/qolmaccount.h
@@ -64,8 +64,6 @@ public:
//! Sign all one time keys.
OneTimeKeys signOneTimeKeys(const UnsignedOneTimeKeys &keys) const;
- SignedOneTimeKey signedOneTimeKey(const QByteArray &key, const QString &signature) const;
-
UploadKeysJob* createUploadKeyRequest(const UnsignedOneTimeKeys& oneTimeKeys) const;
DeviceKeys deviceKeys() const;