aboutsummaryrefslogtreecommitdiff
path: root/lib/olm/qolmaccount.cpp
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-27 00:50:27 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commit57a218086d3c687cd26580ee2a0d2135646411dc (patch)
tree6df3c6d79ee8d197c84583cc564fb453e31d81ab /lib/olm/qolmaccount.cpp
parentd0d8b267753792d0310dd964b0b688d6262e6eb4 (diff)
downloadlibquotient-57a218086d3c687cd26580ee2a0d2135646411dc.tar.gz
libquotient-57a218086d3c687cd26580ee2a0d2135646411dc.zip
Add hehlper functions
Diffstat (limited to 'lib/olm/qolmaccount.cpp')
-rw-r--r--lib/olm/qolmaccount.cpp15
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