XEP-0364: Make use of XEP-0380.

This commit is contained in:
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 @@
<email>sam@samwhited.com</email>
<jid>sam@samwhited.com</jid>
</author>
<revision>
<version>0.3</version>
<date>2017-01-28</date>
<initials>egp</initials>
<remark><p>Add a suggestion to use &xep0380;.</p></remark>
</revision>
<revision>
<version>0.2</version>
<date>2016-04-24</date>
@ -201,6 +207,17 @@
be able to read the message):
</p>
<code><![CDATA[<private xmlns="urn:xmpp:carbons:2"/>]]></code>
</section2>
<section2 topic='Explicit Message Encryption'>
<p>
&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
</p>
<code><![CDATA[
<encryption xmlns="urn:xmpp:eme:0" namespace="urn:xmpp:otr:0"/>
]]></code>
<p>
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'
to='olivia@countess.lit/veiled'>
<body>?OTR?v23?...</body>
<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"/>