aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/qolmaccount.h
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-29 02:53:01 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commit0769764249e10f2f6d1a84ac87e93b2fa3b6c61a (patch)
treeb2074ea1bea8b41517903954383a3bb5e058afa3 /lib/crypto/qolmaccount.h
parent12dd7bab004a0b85807347e9bac4ead2baf56bc5 (diff)
downloadlibquotient-0769764249e10f2f6d1a84ac87e93b2fa3b6c61a.tar.gz
libquotient-0769764249e10f2f6d1a84ac87e93b2fa3b6c61a.zip
More porting to new API
Diffstat (limited to 'lib/crypto/qolmaccount.h')
-rw-r--r--lib/crypto/qolmaccount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/crypto/qolmaccount.h b/lib/crypto/qolmaccount.h
index b33e3768..4398214a 100644
--- a/lib/crypto/qolmaccount.h
+++ b/lib/crypto/qolmaccount.h
@@ -68,6 +68,9 @@ public:
SignedOneTimeKey signedOneTimeKey(const QByteArray &key, const QString &signature) const;
+ //! Remove the one time key used to create the supplied session.
+ [[nodiscard]] std::optional<QOlmError> removeOneTimeKeys(const std::unique_ptr<QOlmSession> &session) const;
+
//! Creates an inbound session for sending/receiving messages from a received 'prekey' message.
//!
//! \param message An Olm pre-key message that was encrypted for this account.