diff options
author | Brendan Taylor <bct@diffeq.com> | 2008-08-03 20:46:27 +0400 |
---|---|---|
committer | Brendan Taylor <bct@diffeq.com> | 2008-08-03 20:46:27 +0400 |
commit | 615ed1be060e4e934b0f2d6de5c55c9fa316ac71 (patch) | |
tree | 16fe8dea29d7b2d484a740205f2e1353fb4d8da0 /src | |
parent | 6967ced458505e6d1560a309891b6dbc3906e891 (diff) |
attach an unencrypted explanatory body to XEP-0200 encrypted messages
Diffstat (limited to 'src')
-rw-r--r-- | src/common/stanza_session.py | 5 |
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: |