1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-11 10:22:19 -05:00
xeps/xep-0378.xml

104 lines
3.8 KiB
XML
Raw Normal View History

2015-08-29 16:03:50 -04:00
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE xep SYSTEM 'xep.dtd' [
<!ENTITY % ents SYSTEM 'xep.ent'>
2017-01-01 17:34:35 -05:00
<!ENTITY otr3 "<span class='ref'><link url='https://otr.cypherpunks.ca/Protocol-v3-4.0.0.html'>Off-the-Record Messaging Protocol version 3</link></span> <note>Off-the-Record Messaging Protocol (OTR) version 3 &lt;<link url='https://otr.cypherpunks.ca/Protocol-v3-4.0.0.html'>https://otr.cypherpunks.ca/Protocol-v3-4.0.0.html</link>&gt; (Accessed 2015-08-30).</note>" >
2015-08-29 16:03:50 -04:00
%ents;
]>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<xep>
<header>
<title>OTR Discovery</title>
<abstract>
This document provides a mechanism by which OTR encryption support can be
discovered in XMPP, without relying on OTRs protocol agnostic discovery
mechanism.
</abstract>
&LEGALNOTICE;
2016-07-15 11:01:35 -04:00
<number>0378</number>
2017-09-11 11:49:11 -04:00
<status>Deferred</status>
2015-08-29 16:03:50 -04:00
<type>Standards Track</type>
<sig>Standards</sig>
<approver>Council</approver>
<dependencies>
<spec>XMPP Core</spec>
<spec>XEP-0030</spec>
</dependencies>
<supersedes/>
<supersededby/>
2016-07-15 11:01:35 -04:00
<shortname>OTR-DISCO</shortname>
&sam;
2017-09-11 11:49:11 -04:00
<revision>
<version>0.1</version>
<date>2017-09-11</date>
<initials>XEP Editor (jwi)</initials>
<remark>Defer due to lack of activity.</remark>
</revision>
2015-08-29 16:03:50 -04:00
<revision>
<version>0.0.1</version>
2016-07-15 11:01:35 -04:00
<date>2016-07-15</date>
2015-08-29 16:03:50 -04:00
<initials>ssw</initials>
2016-07-15 11:01:35 -04:00
<remark><p>Initial version approved by the Council.</p></remark>
2015-08-29 16:03:50 -04:00
</revision>
</header>
<section1 topic='Introduction' anchor='intro'>
<p>
The Off-the-Record messaging protocol (OTR) is widely layered on top of
XMPP to provide end-to-end encryption. Current use of the protocol is
described in &xep0364;. OTR provides its own discovery mechanism in which
it sends messages with special whitespace characters to indicate support.
While this works when initializing a session, there is no way to query a
client for support and to know in advance that a particular version of
2015-08-30 12:21:46 -04:00
OTR is supported. This specification aims to solve that by providing an
in-band mechanism for discovering OTR support in XMPP.
2015-08-29 16:03:50 -04:00
</p>
<p>
It should be noted that newer, more secure encryption protocols exist for
XMPP, and that new implementations of OTR are discouraged. This protocol
is primarily intended to solve issues with existing implementations of
OTR.
</p>
</section1>
<section1 topic='Discovering support' anchor='disco'>
<p>
2017-01-01 17:34:35 -05:00
If an entity supports OTR it MUST advertise the fact by returning a
feature of 'urn:xmpp:otr:0' &VNOTE; in response to a &xep0030; information
request. This indicates support for OTRv3 as defined by &otr3;.
2015-08-29 16:03:50 -04:00
</p>
2017-01-01 17:34:35 -05:00
<example caption='Disco response'><![CDATA[
<feature var='urn:xmpp:otr:0' />]]></example>
<p>
If older versions of OTR are required, they may be discovered out of band
using OTRs built in mechanism which is beyond the scope of this document.
</p>
2015-08-29 16:03:50 -04:00
</section1>
<section1 topic='Security Considerations' anchor='security'>
<p>
Because OTR support is advertised outside of any end-to-end encrypted
stream, it may be subject to downgrade attacks (eg. the server operator
2015-08-31 21:41:35 -04:00
may remove OTR from the features list).
2015-08-29 16:03:50 -04:00
</p>
</section1>
<section1 topic='IANA Considerations' anchor='iana'>
<p>
This document requires no interaction with the Internet Assigned Numbers
Authority (IANA).
</p>
</section1>
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
<p>This specification defines the following XML namespaces:</p>
<ul>
<li>urn:xmpp:otr:0</li>
</ul>
<p>
The &REGISTRAR; shall include the foregoing namespaces in its disco
features registry as defined in &xep0030;.
2017-01-01 17:34:35 -05:00
</p>
<code caption='Registry Submission'><![CDATA[
2015-08-29 16:03:50 -04:00
<var>
<name>urn:xmpp:otr:0</name>
2015-08-30 12:12:56 -04:00
<desc>Indicates support for Off-the-Record Messaging (OTR) version 3</desc>
2016-07-15 11:01:35 -04:00
<doc>XEP-0378</doc>
2017-01-01 17:34:35 -05:00
</var>]]></code>
2015-08-29 16:03:50 -04:00
</section1>
</xep>