diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-01-27 00:50:27 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:34:52 +0100 |
commit | 57a218086d3c687cd26580ee2a0d2135646411dc (patch) | |
tree | 6df3c6d79ee8d197c84583cc564fb453e31d81ab /lib/olm/qolmaccount.cpp | |
parent | d0d8b267753792d0310dd964b0b688d6262e6eb4 (diff) | |
download | libquotient-57a218086d3c687cd26580ee2a0d2135646411dc.tar.gz libquotient-57a218086d3c687cd26580ee2a0d2135646411dc.zip |
Add hehlper functions
Diffstat (limited to 'lib/olm/qolmaccount.cpp')
-rw-r--r-- | lib/olm/qolmaccount.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/olm/qolmaccount.cpp b/lib/olm/qolmaccount.cpp index 9530d675..9c47bc87 100644 --- a/lib/olm/qolmaccount.cpp +++ b/lib/olm/qolmaccount.cpp @@ -197,4 +197,19 @@ OlmAccount *Quotient::QOlmAccount::data() return m_account; } +std::variant<std::unique_ptr<QOlmSession>, OlmError> QOlmAccount::createInboundSession(const Message &preKeyMessage) +{ + return QOlmSession::createInboundSession(this, preKeyMessage); +} + +std::variant<std::unique_ptr<QOlmSession>, OlmError> QOlmAccount::createInboundSessionFrom(const QByteArray &theirIdentityKey, const Message &preKeyMessage) +{ + return QOlmSession::createInboundSessionFrom(this, theirIdentityKey, preKeyMessage); +} + +std::variant<std::unique_ptr<QOlmSession>, OlmError> QOlmAccount::createOutboundSession(const QByteArray &theirIdentityKey, const QByteArray &theirOneTimeKey) +{ + return QOlmSession::createOutboundSession(this, theirIdentityKey, theirOneTimeKey); +} + #endif |