aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/qolmaccount.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-05-24 16:52:45 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commit65877dc9fb6e024d456343d42ef55e0c5c8b67b3 (patch)
treeabc2d7d31d409ff81576172f73b44e9769797e5c /lib/crypto/qolmaccount.cpp
parent0a75a095665101d4ffcbec10b43633eee5a0d6d3 (diff)
downloadlibquotient-65877dc9fb6e024d456343d42ef55e0c5c8b67b3.tar.gz
libquotient-65877dc9fb6e024d456343d42ef55e0c5c8b67b3.zip
Upload one-time keys when their count is low
Diffstat (limited to 'lib/crypto/qolmaccount.cpp')
-rw-r--r--lib/crypto/qolmaccount.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/crypto/qolmaccount.cpp b/lib/crypto/qolmaccount.cpp
index 9368de4f..8cf21045 100644
--- a/lib/crypto/qolmaccount.cpp
+++ b/lib/crypto/qolmaccount.cpp
@@ -276,6 +276,11 @@ std::variant<std::unique_ptr<QOlmSession>, QOlmError> QOlmAccount::createOutboun
return QOlmSession::createOutboundSession(this, theirIdentityKey, theirOneTimeKey);
}
+void QOlmAccount::markKeysAsPublished()
+{
+ olm_account_mark_keys_as_published(m_account);
+}
+
bool Quotient::verifyIdentitySignature(const DeviceKeys &deviceKeys,
const QString &deviceId,
const QString &userId)