aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppMessage.cpp
diff options
context:
space:
mode:
authorMelvin Keskin <melvo@olomono.de>2022-01-23 18:11:48 +0100
committerLinus Jahn <lnj@kaidan.im>2022-03-03 13:49:50 +0100
commitec1480a11ee69924712b3b1b10cde7fbf6ba1866 (patch)
tree9b6afbd3b3869fda4ccdded7859de743c607d5ca /src/base/QXmppMessage.cpp
parent4f77a9d91d5841771d27821ced76c7c6801790f5 (diff)
downloadqxmpp-ec1480a11ee69924712b3b1b10cde7fbf6ba1866.tar.gz
Add QXmppE2eeMetadata used by QXmppStanza
That class contains addtional data needed for end-to-end encryption purposes. 'senderKey' is moved from QXmppMessage to QXmppE2eeMetadata. 'sceTimestamp' is introduced.
Diffstat (limited to 'src/base/QXmppMessage.cpp')
-rw-r--r--src/base/QXmppMessage.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/base/QXmppMessage.cpp b/src/base/QXmppMessage.cpp
index e2d4a003..ec285d0a 100644
--- a/src/base/QXmppMessage.cpp
+++ b/src/base/QXmppMessage.cpp
@@ -14,8 +14,6 @@
#include "QXmppTrustMessageElement.h"
#include "QXmppUtils.h"
-#include <optional>
-
#include <QDateTime>
#include <QDomElement>
#include <QTextStream>
@@ -94,7 +92,6 @@ public:
QString thread;
QString parentThread;
QXmppMessage::Type type;
- QByteArray senderKey;
// XEP-0066: Out of Band Data
QString outOfBandUrl;
@@ -312,44 +309,6 @@ void QXmppMessage::setParentThread(const QString &parent)
}
///
-/// Returns the ID of this message's sender's public long-term key.
-///
-/// The key ID is not part of a transmitted message and thus not de- /
-/// serialized.
-/// Instead, the key ID is set by an encryption protocol such as
-/// \xep{0384, OMEMO Encryption} when it decrypts this message.
-/// It can be used by trust management protocols such as
-/// \xep{0450, Automatic Trust Management (ATM)}.
-///
-/// \return the ID of the sender's key
-///
-/// \since QXmpp 1.5
-///
-QByteArray QXmppMessage::senderKey() const
-{
- return d->senderKey;
-}
-
-///
-/// Sets the ID of this message's sender's public long-term key.
-///
-/// The key ID is not part of a transmitted message and thus not de- /
-/// serialized.
-/// Instead, the key ID is set by an encryption protocol such as
-/// \xep{0384, OMEMO Encryption} when it decrypts this message.
-/// It can be used by trust management protocols such as
-/// \xep{0450, Automatic Trust Management (ATM)}.
-///
-/// \param keyId ID of the sender's key
-///
-/// \since QXmpp 1.5
-///
-void QXmppMessage::setSenderKey(const QByteArray &keyId)
-{
- d->senderKey = keyId;
-}
-
-///
/// Returns a possibly attached URL from \xep{0066}: Out of Band Data
///
/// \since QXmpp 1.0