Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrendan Taylor <bct@diffeq.com>2008-08-03 20:46:27 +0400
committerBrendan Taylor <bct@diffeq.com>2008-08-03 20:46:27 +0400
commit615ed1be060e4e934b0f2d6de5c55c9fa316ac71 (patch)
tree16fe8dea29d7b2d484a740205f2e1353fb4d8da0 /src
parent6967ced458505e6d1560a309891b6dbc3906e891 (diff)
attach an unencrypted explanatory body to XEP-0200 encrypted messages
Diffstat (limited to 'src')
-rw-r--r--src/common/stanza_session.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/stanza_session.py b/src/common/stanza_session.py
index 0cf337db2..debdeda24 100644
--- a/src/common/stanza_session.py
+++ b/src/common/stanza_session.py
@@ -249,6 +249,9 @@ class EncryptedStanzaSession(StanzaSession):
c.NT.mac = base64.b64encode(self.hmac(self.km_s, m_content + \
crypto.encode_mpi(old_en_counter)))
+ stanza.setBody(_('[This message is part of an encrypted session. '
+ 'If you see this message, something went wrong.]'))
+
return stanza
def is_xep_200_encrypted(self, msg):
@@ -950,4 +953,4 @@ otherwise, list the fields we haven't implemented'''
self.km_o = ''
-# vim: se ts=3: \ No newline at end of file
+# vim: se ts=3: