Made the 'name' attribute optional for existing mechanisms.
+
Added a remark about the possibility to hide encrypted messages
+ following user input.
+
Made explicit that this protocol affects any encryption mechanism,
+ present or future, not only those listed here.
+
Display the namespace of the encryption mechanism in the default
+ messages.
+
+ 0.0.12016-08-14
@@ -77,7 +91,6 @@
id='secret1'>
?OTR?v23?...
]]>
@@ -86,7 +99,8 @@
display that the message was encrypted but that it is not able to decrypt
it instead of displaying the body, for example:
-
🔒 This message was encrypted with OTR and could not be decrypted.
+
🔒 This message was encrypted with OTR (urn:xmpp:otr:0) and could not be
+ decrypted.
Juliet may then communicate to Romeo that she was unable to receive his
@@ -104,7 +118,6 @@
This message is encrypted with OpenPGP for XMPP.
]]>
@@ -112,17 +125,19 @@
Upon receiving this message, Juliet’s current client prompts her to enable
a plugin, or even do it on its own, possible representations include:
-
🔒 This message was encrypted with OpenPGP for XMPP, click
- here to enable this plugin.
-
-
-
🔒 This message was encrypted with OpenPGP for XMPP, downloading and
- installing an appropriate plugin, your message will be displayed
- shortly.
+
🔒 This message was encrypted with OpenPGP for XMPP
+ (urn:xmpp:openpgp:0), click here to enable this
+ plugin.
+
Any encryption mechanism using message as a transport is a candidate, and
+ MAY have a 'name' attribute to help the receiving client display it to the
+ user, in case this client doesn’t understand its namespace yet. A 'name'
+ attribute SHOULD NOT be included for the protocols listed herein, and
+ SHOULD be ignored by a receiving client:
+
Name
@@ -156,7 +171,7 @@
If an entity supports the Encrypted Message Extension protocol, it MUST
report that by including a &xep0030; feature of "urn:xmpp:eme:0" in
response to disco#info requests:
-
]]>
-
+
A sender entity MAY include a 'name' attribute for any encryption
+ mechanism not listed in this specification, to help the receiving entity
+ present it to the user, but SHOULD NOT include one for the ones listed
+ here.
+
A receiving entity MUST NOT use the 'name' attribute if it is present and
+ they already have a name associated with it.
+
A receiving entity MAY not display anything in case an encrypted message
+ has been received, if the user agreed to that behaviour.
When a message is marked with an encryption tag and can not be decrypted,
the body can safely be ignored and a localized message displayed
instead.
+
If an entity includes a 'name' attribute, it should attempt to localise it
+ to the best of its abilities for the receiving client.
@@ -216,7 +241,7 @@
-
This specification defines the following XML namespace:
+
This specification defines the following XML namespace: