From ec1480a11ee69924712b3b1b10cde7fbf6ba1866 Mon Sep 17 00:00:00 2001 From: Melvin Keskin Date: Sun, 23 Jan 2022 18:11:48 +0100 Subject: 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. --- src/base/QXmppMessage.cpp | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'src/base/QXmppMessage.cpp') 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 - #include #include #include @@ -94,7 +92,6 @@ public: QString thread; QString parentThread; QXmppMessage::Type type; - QByteArray senderKey; // XEP-0066: Out of Band Data QString outOfBandUrl; @@ -311,44 +308,6 @@ void QXmppMessage::setParentThread(const QString &parent) d->parentThread = 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 /// -- cgit v1.2.3