From a556d9f5eae82c739dba4f6662bc3a0b5ebc7224 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Sat, 14 Nov 2020 08:31:35 -0500 Subject: [PATCH 1/3] XEP-0389: fix a small typo --- xep-0389.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xep-0389.xml b/xep-0389.xml index a95c8ffa..2ed6b78d 100644 --- a/xep-0389.xml +++ b/xep-0389.xml @@ -363,7 +363,7 @@ If an entity supports issuing challenges but does not provide any flows after stream negotiation is complete it MUST respond with an empty list. Similarly, an entity that supports this specification but does not support - issuign challenges itself (for example, a client that only supports + issuing challenges itself (for example, a client that only supports receiving challenges) it MUST respond successfully with an empty list.

Date: Sat, 14 Nov 2020 08:31:45 -0500 Subject: [PATCH 2/3] XEP-0389: error if client selects an invalid flow --- xep-0389.xml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/xep-0389.xml b/xep-0389.xml index 2ed6b78d..0ed61eb4 100644 --- a/xep-0389.xml +++ b/xep-0389.xml @@ -371,7 +371,7 @@ ]]> - +

A client selects the registration or recovery feature for negotiation by replying with an element of the same name and namespace. @@ -384,6 +384,19 @@ ]]> +

+ If during stream initialization the client attempts to select a flow that + does not match one of the flows sent by the server, the server MUST + respond with an "undefined-condition" stream error containing an + "invalid-flow" application error qualified by the 'urn:xmpp:register:0' + namespace. +

+ + + + +]]>

If the client is initiating registration or recovery after a stream has already been initiated it uses the same registration element wrapped in an @@ -396,7 +409,21 @@ ]]>

- The server then replies to the IQ or feature selection with a challenge. + If the client attempts to select a flow that does not match one of the + flows sent by the server in response to an IQ after stream initialization + the server MUST respond with a stanza error of type "item-not-found". +

+ + + + +]]> +
+ +

+ If a valid flow is selected by the client the server then replies to the + IQ or feature selection with a challenge. If replying to an IQ, the challenge must be wrapped in an IQ of type "result". Challenges take the form of a <challenge/> element qualified by the From 948fcdb2f50dbbc3dcd956838f8fb473a9f0b702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 17 Nov 2020 15:24:58 +0100 Subject: [PATCH 3/3] XEP-0389: add revision block --- xep-0389.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xep-0389.xml b/xep-0389.xml index 0ed61eb4..6f9d81b0 100644 --- a/xep-0389.xml +++ b/xep-0389.xml @@ -31,6 +31,14 @@ ibr2 &sam; + + 0.6.0 + 2020-11-17 + ssw + +

Error out if a client selects an invalid flow

+ + 0.5.0 2020-05-26