Use Eplicit Message Encryption (XEP-0380) in OX-IM (XEP-0374)

This commit is contained in:
Florian Schmaus 2017-01-20 21:23:03 +01:00 committed by Sam Whited
parent 0225d289ac
commit aed9f02d2e
1 changed files with 11 additions and 2 deletions

View File

@ -42,6 +42,12 @@
<email>look@my.amazin.horse</email>
<jid>valodim@stratum0.org</jid>
</author>
<revision>
<version>0.1.2</version>
<date>2017-01-20</date>
<initials>fs</initials>
<remark><p>Make use of XEP-0380: Explicit Message Encryption.</p></remark>
</revision>
<revision>
<version>0.1.1</version>
<date>2016-06-04</date>
@ -197,14 +203,17 @@
message is encrypted. Furthermore the message SHOULD contain a
'store' hint as defined in &xep0334; <link
url='https://xmpp.org/extensions/xep-0334.html#sect-idp1502160'>§
4.4</link></p>
4.4</link> and a "this message contains an encrypted body text" hint
in form of an &lt;encryption/&gt; extension element as specified by
&xep0380;.</p>
<example caption='An encrypted and signed message with hints.'><![CDATA[
<message to='juliet@example.org'>
<body>This message is encrypted using OpenPGP.</body>
<store xmlns='urn:xmpp:hints'/>
<encryption xmlns='urn:xmpp:eme:0' namespace='urn:xmpp:openpgp:0'/>
<openpgp xmlns='urn:xmpp:openpgp:0'>
BASE64_OPENPGP_MESSAGE_CONTAINING__CONTENT_ELEMENT
BASE64_OPENPGP_MESSAGE_CONTAINING_CONTENT_ELEMENT
</openpgp>
</message>]]></example>