diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-01-29 02:53:01 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:34:52 +0100 |
commit | 0769764249e10f2f6d1a84ac87e93b2fa3b6c61a (patch) | |
tree | b2074ea1bea8b41517903954383a3bb5e058afa3 /lib/crypto/qolmaccount.h | |
parent | 12dd7bab004a0b85807347e9bac4ead2baf56bc5 (diff) | |
download | libquotient-0769764249e10f2f6d1a84ac87e93b2fa3b6c61a.tar.gz libquotient-0769764249e10f2f6d1a84ac87e93b2fa3b6c61a.zip |
More porting to new API
Diffstat (limited to 'lib/crypto/qolmaccount.h')
-rw-r--r-- | lib/crypto/qolmaccount.h | 3 |
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. |