aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/qolmsession.h.back
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-31 01:20:57 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commita5e84c51e9c89021edc8aaade8c751fb6d39cb89 (patch)
tree1496a715c918599d342359e358b22edb23efae7d /lib/crypto/qolmsession.h.back
parentfe9b2f918753d40d93f8aecf182485e75d4b75bb (diff)
downloadlibquotient-a5e84c51e9c89021edc8aaade8c751fb6d39cb89.tar.gz
libquotient-a5e84c51e9c89021edc8aaade8c751fb6d39cb89.zip
remove old files
Diffstat (limited to 'lib/crypto/qolmsession.h.back')
-rw-r--r--lib/crypto/qolmsession.h.back49
1 files changed, 0 insertions, 49 deletions
diff --git a/lib/crypto/qolmsession.h.back b/lib/crypto/qolmsession.h.back
deleted file mode 100644
index cbba5cef..00000000
--- a/lib/crypto/qolmsession.h.back
+++ /dev/null
@@ -1,49 +0,0 @@
-// SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
-//
-// SPDX-License-Identifier: LGPL-2.1-or-later
-
-#pragma once
-
-#include "olm/e2ee.h"
-#include "olm/olm.h"
-#include "olm/errors.h"
-#include <variant>
-
-namespace Quotient {
-
-//! An encrypted Olm message.
-struct QOlmMessage {
- QByteArray message;
-};
-
-//! A encrypted Olm pre-key message.
-//!
-//! This message, unlike a normal Message, can be used to create new Olm sessions.
-struct PreKeyMessage
-{
- QByteArray message;
-};
-
-enum OlmMessageType
-{
- PreKeyType,
- MessageType,
-};
-
-using OlmMessage = std::variant<QOlmMessage, PreKeyMessage>;
-
-std::optional<OlmMessage> fromTypeAndCipthertext(size_t messageType, const QByteArray &ciphertext);
-
-std::pair<OlmMessageType, QByteArray> toPair(const OlmMessage &message);
-
-//class QOlmSession
-//{
-// /// Creates an inbound session for sending/receiving messages from a received 'prekey' message.
-// static std::variant<std::unique_ptr<QOlmSession>, OlmError> createInboundSession(const QOlmAccount &account,
-// PreKeyMessage &message);
-//
-////private:
-// //static std::variant<std::unique_ptr<QOlmSession>, OlmError> createSessionWith(std::function<std::variant<size_t(OlmSession *)>> func);
-//}
-
-}