XEP-0364: Make use of XEP-0380.

Emmanuel Gil Peyrot 2017-01-28 19:37:51 +00:00 committed by Sam Whited
parent 78ce13c1e4
commit 82e292730e
1 changed files with 18 additions and 0 deletions

View File

@ -30,6 +30,12 @@
<remark><p>Add a suggestion to use &xep0380;.</p></remark>
@ -201,6 +207,17 @@
be able to read the message):
<code><![CDATA[<private xmlns="urn:xmpp:carbons:2"/>]]></code>
<section2 topic='Explicit Message Encryption'>
&xep0380; defines a hint to let clients without OTR support know that
this message was encrypted, and display a friendly message instead of
the raw encrypted data. It is RECOMMENDED that the client adds this
hint alongside every encrypted message
<encryption xmlns="urn:xmpp:eme:0" namespace="urn:xmpp:otr:0"/>
All together, an example OTR message might look like this (with the
majority of the body stripped out for readability):
@ -209,6 +226,7 @@
<message from='malvolio@stewardsguild.lit/countesshousehold'
<encryption xmlns="urn:xmpp:eme:0" namespace="urn:xmpp:otr:0"/>
<no-copy xmlns="urn:xmpp:hints"/>
<no-permanent-store xmlns="urn:xmpp:hints"/>
<private xmlns="urn:xmpp:carbons:2"/>