mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 18:22:24 -05:00
0.15
This commit is contained in:
parent
db8f1249e1
commit
abbf86ae78
54
xep-0234.xml
54
xep-0234.xml
@ -24,6 +24,12 @@
|
|||||||
<supersededby/>
|
<supersededby/>
|
||||||
<shortname>NOT_YET_ASSIGNED</shortname>
|
<shortname>NOT_YET_ASSIGNED</shortname>
|
||||||
&stpeter;
|
&stpeter;
|
||||||
|
<revision>
|
||||||
|
<version>0.15</version>
|
||||||
|
<date>2012-02-08</date>
|
||||||
|
<initials>psa</initials>
|
||||||
|
<remark><p>Updated to track revisions to XEP-0300.</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.14</version>
|
<version>0.14</version>
|
||||||
<date>2011-06-29</date>
|
<date>2011-06-29</date>
|
||||||
@ -224,9 +230,7 @@ Initiator Responder
|
|||||||
<name>test.txt</name>
|
<name>test.txt</name>
|
||||||
<range/>
|
<range/>
|
||||||
<size>1022</size>
|
<size>1022</size>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-11'>552da749930852c69ae5d2141d3766b1</hash>
|
||||||
<hash algo='sha1'>552da749930852c69ae5d2141d3766b1</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
</offer>
|
</offer>
|
||||||
</description>
|
</description>
|
||||||
@ -278,9 +282,7 @@ Initiator Responder
|
|||||||
<name>test.txt</name>
|
<name>test.txt</name>
|
||||||
<range/>
|
<range/>
|
||||||
<size>1022</size>
|
<size>1022</size>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>552da749930852c69ae5d2141d3766b1</hash>
|
||||||
<hash algo='sha1'>552da749930852c69ae5d2141d3766b1</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
</offer>
|
</offer>
|
||||||
</description>
|
</description>
|
||||||
@ -365,7 +367,7 @@ Initiator Responder
|
|||||||
</section1>
|
</section1>
|
||||||
|
|
||||||
<section1 topic='Communicating the Hash' anchor='hash'>
|
<section1 topic='Communicating the Hash' anchor='hash'>
|
||||||
<p>At any time during the lifetime of the file transfer session, the hosting entity (i.e., the entity where the file resides) can communicate the checksum of the file to the receiving entity. This is done by sending a session-info message containing a <checksum/> element qualified by the 'urn:xmpp:jingle:apps:file-transfer:3' namespace, which in turn contains a <file/> element that MUST at least contain a child element of <hashes/> qualified by the 'urn:xmpp:hashes:0' namespace and MAY contain other elements qualified by the 'urn:xmpp:jingle:apps:file-transfer:3' namespace (e.g. <name/> and <date/>). Each <hash/> child of the <hashes/> element contains a checksum of the file contents produced in accordance with the hashing function specified by the 'algo' attribute, which MUST be one of the functions listed in the &ianahashes;.</p>
|
<p>At any time during the lifetime of the file transfer session, the hosting entity (i.e., the entity where the file resides) can communicate the checksum of the file to the receiving entity. This is done by sending a session-info message containing a <checksum/> element qualified by the 'urn:xmpp:jingle:apps:file-transfer:3' namespace, which in turn contains a <file/> element that MUST at least contain a child element of <hash/> qualified by the 'urn:xmpp:hashes:1' namespace and MAY contain other elements qualified by the 'urn:xmpp:jingle:apps:file-transfer:3' namespace (e.g. <name/> and <date/>). Each <hash/> element contains a checksum of the file contents produced in accordance with the hashing function specified by the 'algo' attribute, which MUST be one of the functions listed in the &ianahashes;.</p>
|
||||||
<example caption="Hosting entity sends hash in session-info"><![CDATA[
|
<example caption="Hosting entity sends hash in session-info"><![CDATA[
|
||||||
<iq from='romeo@montague.lit/orchard'
|
<iq from='romeo@montague.lit/orchard'
|
||||||
id='kqh401b5'
|
id='kqh401b5'
|
||||||
@ -377,9 +379,7 @@ Initiator Responder
|
|||||||
sid='a73sjjvkla37jfea'>
|
sid='a73sjjvkla37jfea'>
|
||||||
<checksum xmlns='urn:xmpp:jingle:apps:file-transfer:3'>
|
<checksum xmlns='urn:xmpp:jingle:apps:file-transfer:3'>
|
||||||
<file>
|
<file>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>552da749930852c69ae5d2141d3766b1</hash>
|
||||||
<hash algo='sha-1'>552da749930852c69ae5d2141d3766b1</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
</checksum>
|
</checksum>
|
||||||
</jingle>
|
</jingle>
|
||||||
@ -400,9 +400,7 @@ Initiator Responder
|
|||||||
sid='a73sjjvkla37jfea'>
|
sid='a73sjjvkla37jfea'>
|
||||||
<abort xmlns='urn:xmpp:jingle:apps:file-transfer:3'>
|
<abort xmlns='urn:xmpp:jingle:apps:file-transfer:3'>
|
||||||
<file>
|
<file>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>552da749930852c69ae5d2141d3766b1</hash>
|
||||||
<hash algo='sha-1'>a749930852c69ae5d2141d3766b1552d</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
</abort>
|
</abort>
|
||||||
</jingle>
|
</jingle>
|
||||||
@ -441,9 +439,7 @@ Initiator Responder
|
|||||||
<description xmlns='urn:xmpp:jingle:apps:file-transfer:3'>
|
<description xmlns='urn:xmpp:jingle:apps:file-transfer:3'>
|
||||||
<request>
|
<request>
|
||||||
<file>
|
<file>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>552da749930852c69ae5d2141d3766b1</hash>
|
||||||
<hash algo='sha1'>552da749930852c69ae5d2141d3766b1</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
</request>
|
</request>
|
||||||
</description>
|
</description>
|
||||||
@ -494,9 +490,7 @@ Initiator Responder
|
|||||||
<request>
|
<request>
|
||||||
<file>
|
<file>
|
||||||
<range offset='270336'/>
|
<range offset='270336'/>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>552da749930852c69ae5d2141d3766b1</hash>
|
||||||
<hash algo='sha1'>552da749930852c69ae5d2141d3766b1</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
</request>
|
</request>
|
||||||
</description>
|
</description>
|
||||||
@ -547,25 +541,19 @@ Initiator Responder
|
|||||||
<date>2011-06-01T15:58:15Z</date>
|
<date>2011-06-01T15:58:15Z</date>
|
||||||
<name>somefile.txt</name>
|
<name>somefile.txt</name>
|
||||||
<size>1234</size>
|
<size>1234</size>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>a749930852c69ae5d2141d3766b1552d
|
||||||
<hash algo='sha1'>a749930852c69ae5d2141d3766b1552d
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<date>2011-06-01T15:58:15Z</date>
|
<date>2011-06-01T15:58:15Z</date>
|
||||||
<name>anotherfile.txt</name>
|
<name>anotherfile.txt</name>
|
||||||
<size>2345</size>
|
<size>2345</size>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>930852c69ae5d2141d3766b1552da749</hash>
|
||||||
<hash algo='sha1'>930852c69ae5d2141d3766b1552da749</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<date>2011-06-01T15:58:15Z</date>
|
<date>2011-06-01T15:58:15Z</date>
|
||||||
<name>yetanotherfile.txt</name>
|
<name>yetanotherfile.txt</name>
|
||||||
<size>3456</size>
|
<size>3456</size>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>52c69ae5d2141d3766b1552da7499308</hash>
|
||||||
<hash algo='sha1'>52c69ae5d2141d3766b1552da7499308</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
</offer>
|
</offer>
|
||||||
</description>
|
</description>
|
||||||
@ -602,9 +590,7 @@ Initiator Responder
|
|||||||
sid='a73sjjvkla37jfea'>
|
sid='a73sjjvkla37jfea'>
|
||||||
<received xmlns='urn:xmpp:jingle:apps:file-transfer:3'>
|
<received xmlns='urn:xmpp:jingle:apps:file-transfer:3'>
|
||||||
<file>
|
<file>
|
||||||
<hashes xmlns='urn:xmpp:hashes:0'>
|
<hash xmlns='urn:xmpp:hashes:1' algo='sha-1'>a749930852c69ae5d2141d3766b1552d</hash>
|
||||||
<hash algo='sha-1'>a749930852c69ae5d2141d3766b1552d</hash>
|
|
||||||
</hashes>
|
|
||||||
</file>
|
</file>
|
||||||
</received>
|
</received>
|
||||||
</jingle>
|
</jingle>
|
||||||
@ -781,7 +767,7 @@ Initiator Responder
|
|||||||
xmlns='urn:xmpp:jingle:apps:file-transfer:3'
|
xmlns='urn:xmpp:jingle:apps:file-transfer:3'
|
||||||
elementFormDefault='qualified'>
|
elementFormDefault='qualified'>
|
||||||
|
|
||||||
<xs:import namespace='urn:xmpp:hashes:0'/>
|
<xs:import namespace='urn:xmpp:hashes:1'/>
|
||||||
|
|
||||||
<xs:element name='description'>
|
<xs:element name='description'>
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
@ -806,11 +792,11 @@ Initiator Responder
|
|||||||
|
|
||||||
<xs:element name='file'>
|
<xs:element name='file'>
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence xmlns:h='urn:xmpp:hashes:0'>
|
<xs:sequence xmlns:h='urn:xmpp:hashes:1'>
|
||||||
<xs:element name='date' type='xs:date'/>
|
<xs:element name='date' type='xs:date'/>
|
||||||
<xs:element name='name' type='xs:string'/>
|
<xs:element name='name' type='xs:string'/>
|
||||||
<xs:element name='size' type='xs:positiveInteger'/>
|
<xs:element name='size' type='xs:positiveInteger'/>
|
||||||
<xs:element ref='h:hashes'/>
|
<xs:element ref='h:hash' minOccurs='0' maxOccurs='unbounded'/>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
Loading…
Reference in New Issue
Block a user