From 6c111246ec0a17309e4d6af4c57d6fcc058671cb Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Mon, 4 Apr 2022 18:09:03 +0200 Subject: Client: Don't pass encrypted stanzas to old managers Old managers means managers only using the old handleStanza() overload. Such managers are likely not handling the encrypted contents correctly (e.g. sending unencrypted replies and thereby leaking information). --- src/client/QXmppClientExtension.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/QXmppClientExtension.cpp') diff --git a/src/client/QXmppClientExtension.cpp b/src/client/QXmppClientExtension.cpp index c5e00c21..eb6ec907 100644 --- a/src/client/QXmppClientExtension.cpp +++ b/src/client/QXmppClientExtension.cpp @@ -53,6 +53,9 @@ QList QXmppClientExtension::discoveryIdentities() co /// processing should occur, or false to let other extensions process /// the stanza. /// +/// End-to-end encrypted stanzas are not passed to this overload, for that +/// purpose use the new overload instead. +/// /// \deprecated This is deprecated since QXmpp 1.5. Please use /// QXmppClientExtension::handleStanza(const QDomElement &stanza, /// const std::optional &e2eeMetadata). -- cgit v1.2.3