XEP-0440 - make channel-binding a top level stream feature

This commit is contained in:
Daniel Gultsch 2022-09-21 16:16:20 +02:00
parent 4045ce619c
commit 78bbafa14f
1 changed files with 19 additions and 11 deletions

View File

@ -23,6 +23,14 @@
<supersededby/> <supersededby/>
<shortname>sasl-cb-types</shortname> <shortname>sasl-cb-types</shortname>
&flow; &flow;
<revision>
<version>0.4.0</version>
<date>2022-09-21</date>
<initials>dg</initials>
<remark>
Make sasl-channel-binding element a top level stream feature
</remark>
</revision>
<revision> <revision>
<version>0.3.0</version> <version>0.3.0</version>
<date>2022-08-29</date> <date>2022-08-29</date>
@ -71,9 +79,9 @@
<section1 topic='Announcing the SASL Channel-Binding Type Capability' anchor='sasl-cb-type'> <section1 topic='Announcing the SASL Channel-Binding Type Capability' anchor='sasl-cb-type'>
<p>This protocol consists of a single optional extension element <p>This protocol consists of a stream feature named 'sasl-channel-binding'
named 'sasl-channel-binding' qualified by the 'urn:xmpp:sasl-cb:0' qualified by the 'urn:xmpp:sasl-cb:0' namespace.
namespace. The 'sasl-channel-binding' element MUST contain one or The 'sasl-channel-binding' element MUST contain one or
more 'channel-binding' elements, of which each MUST have an more 'channel-binding' elements, of which each MUST have an
attribute with the name 'type'. The value of the 'type' attribute attribute with the name 'type'. The value of the 'type' attribute
SHOULD be the "Channel-binding unique prefix" of a channel-binding SHOULD be the "Channel-binding unique prefix" of a channel-binding
@ -81,25 +89,25 @@
<p>A server declares that it supports particular channel-binding <p>A server declares that it supports particular channel-binding
types by listing the supported types via the 'sasl-channel-binding' types by listing the supported types via the 'sasl-channel-binding'
element defined herein. The 'sasl-channel-binding' element could stream feature defined herein. The 'sasl-channel-binding' element could
appear as child element to the SASL &lt;mechanisms/&gt; appear next to the SASL &lt;mechanisms/&gt;
stream-feature element, qualified by the stream-feature element, qualified by the
'urn:ietf:params:xml:ns:xmpp-sasl' namespace, as specified in 'urn:ietf:params:xml:ns:xmpp-sasl' namespace, as specified in
&rfc6120;. Another potential appearance of &rfc6120;. Another potential appearance of
&lt;sasl-channel-binding&gt; is as child element of the &lt;sasl-channel-binding&gt; is next to the
&lt;mechanisms/&gt; stream-feature element as specified in the &lt;authentication/&gt; stream-feature element as specified in the
&xep0388;.</p> &xep0388;.</p>
<example caption='Example &lt;mechanisms/&gt; stream feature with SASL Channel-Binding Type Capability.'><![CDATA[ <example caption='Example &lt;mechanisms/&gt; stream feature with SASL Channel-Binding Type Capability.'><![CDATA[
<stream:features> <stream:features>
<sasl-channel-binding xmlns='urn:xmpp:sasl-cb:0'>
<channel-binding type='tls-server-end-point'/>
<channel-binding type='tls-exporter'/>
</sasl-channel-binding>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>EXTERNAL</mechanism> <mechanism>EXTERNAL</mechanism>
<mechanism>SCRAM-SHA-1-PLUS</mechanism> <mechanism>SCRAM-SHA-1-PLUS</mechanism>
<mechanism>PLAIN</mechanism> <mechanism>PLAIN</mechanism>
<sasl-channel-binding xmlns='urn:xmpp:sasl-cb:0'>
<channel-binding type='tls-server-end-point'/>
<channel-binding type='tls-exporter'/>
</sasl-channel-binding>
</mechanisms> </mechanisms>
</stream:features>]]></example> </stream:features>]]></example>