summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-05-30 19:51:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-05-30 19:51:56 +0300
commitcd995f6a5bf58adb8d24a0d873fb66825ed95760 (patch)
treecb818770540a91e1ae3ae7015d92b7ed1ec73f6c
parent8c2efbf3effd0190e2f98613cf783d411f7b43ee (diff)
added a message for non-capable clients
-rw-r--r--protocols/JabberG/src/jabber_omemo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp
index 91c42a925b..0a2aa68a73 100644
--- a/protocols/JabberG/src/jabber_omemo.cpp
+++ b/protocols/JabberG/src/jabber_omemo.cpp
@@ -2024,6 +2024,9 @@ void CJabberProto::OmemoOnIqResultGetBundle(const TiXmlElement *iqNode, CJabberI
int CJabberProto::OmemoEncryptMessage(XmlNode &msg, const char *msg_text, MCONTACT hContact)
{
+ // a message for clients that do not support OMEMO
+ msg << XCHILD("body", "I sent you an OMEMO encrypted message but your client doesn’t seem to support that");
+
const EVP_CIPHER *cipher = EVP_aes_128_gcm();
unsigned char key[16], iv[12], tag[16] /*, aad[48]*/;
Utils_GetRandom(key, _countof_portable(key));