From 57a218086d3c687cd26580ee2a0d2135646411dc Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 27 Jan 2021 00:50:27 +0100 Subject: Add hehlper functions --- lib/olm/qolmaccount.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/olm/qolmaccount.cpp') 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, OlmError> QOlmAccount::createInboundSession(const Message &preKeyMessage) +{ + return QOlmSession::createInboundSession(this, preKeyMessage); +} + +std::variant, OlmError> QOlmAccount::createInboundSessionFrom(const QByteArray &theirIdentityKey, const Message &preKeyMessage) +{ + return QOlmSession::createInboundSessionFrom(this, theirIdentityKey, preKeyMessage); +} + +std::variant, OlmError> QOlmAccount::createOutboundSession(const QByteArray &theirIdentityKey, const QByteArray &theirOneTimeKey) +{ + return QOlmSession::createOutboundSession(this, theirIdentityKey, theirOneTimeKey); +} + #endif -- cgit v1.2.3