This commit is contained in:
stpeter 2011-04-13 19:00:03 -06:00
parent 7d4864ff9c
commit dedee5b939
1 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,7 @@
&LEGALNOTICE;
<number>0114</number>
<status>Active</status>
<interim/>
<type>Historical</type>
<sig>Standards</sig>
<dependencies>
@ -28,6 +29,12 @@
<url>http://xmpp.org/schemas/component-connect.xsd</url>
</schemaloc>
&stpeter;
<revision>
<version>1.6rc1</version>
<date>2011-04-13</date>
<initials>psa</initials>
<remark>Removed unnecessary and unimplemented requirement to escape predefined XML entities.</remark>
</revision>
<revision>
<version>1.5</version>
<date>2005-03-03</date>
@ -101,7 +108,7 @@
]]></example>
<p>The XML character data of the handshake element is computed according to the following algorithm:</p>
<ol>
<li>Concatenate the Stream ID received from the server with the shared secret (if necessary, characters that map to predefined XML entities MUST be escaped according to the rules defined in section 4.6 of the XML specification, and any non-ASCII characters MUST be encoded according to the encoding of XML streams as specified in <strong>XMPP Core</strong>, i.e., UTF-8 as defined in &rfc3269;).</li>
<li>Concatenate the Stream ID received from the server with the shared secret.</li>
<li>Hash the concatenated string according to the SHA1 algorithm, i.e., SHA1( concat (sid, password)).</li>
<li>Ensure that the hash output is in hexadecimal format, not binary or base64.</li>
<li>Convert the hash output to all lowercase characters.</li>