diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-24 15:56:03 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-24 15:56:03 +0200 |
commit | 7fdb1a8653863f580b2672faefc08fb372258df8 (patch) | |
tree | 49b46f717ea981bb4f41b4a2b60d8ec1b1b5d617 /lib/e2ee | |
parent | 6ae41d68dcdb91e5ec4a3ea48a151daaa0765765 (diff) | |
download | libquotient-7fdb1a8653863f580b2672faefc08fb372258df8.tar.gz libquotient-7fdb1a8653863f580b2672faefc08fb372258df8.zip |
Code cleanup and reformatting
Diffstat (limited to 'lib/e2ee')
-rw-r--r-- | lib/e2ee/qolmaccount.cpp | 6 | ||||
-rw-r--r-- | lib/e2ee/qolmaccount.h | 2 |
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; |