aria2/test/metalink4.xml
Tatsuhiro Tsujikawa 3bb7855a56 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
In Metalink4, if size element contains invalid size, discard whole
	document. Added strict hash value check for metalink3/4.
	* src/MetalinkParserController.cc
	* src/MetalinkParserStateMachine.cc
	* src/MetalinkParserStateMachine.h
	* src/MetalinkParserStateV3Impl.cc
	* src/MetalinkParserStateV4Impl.cc
	* src/util.cc
	* src/util.h
	* test/MetalinkParserControllerTest.cc
	* test/MetalinkProcessorTest.cc
	* test/metalink4.xml
2010-03-02 15:14:39 +00:00

28 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<metalink xmlns="urn:ietf:params:xml:ns:metalink">
<published>2009-05-15T12:23:23Z</published>
<file name="example.ext">
<size>786430</size>
<identity>Example</identity>
<version>1.0</version>
<language>en</language>
<description>A description of the example file for download.</description>
<hash type="md5">cbd18db4cc2f85cedef654fccc4a4d8</hash>
<hash type="sha-1">0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33</hash>
<pieces length="262144" type="sha-1">
<hash>5bd9f7248df0f3a6a86ab6c95f48787d546efa14</hash>
<hash>9413ee70957a09d55704123687478e07f18c7b29</hash>
<hash>44213f9f4d59b557314fadcd233232eebcac8012</hash>
</pieces>
<pieces length="262144" type="sha-256">
<hash>0245178074fd042e19b7c3885b360fc21064b30e73f5626c7e3b005d048069c5</hash>
<hash>487ba2299be7f759d7c7bf6a4ac3a32cee81f1bb9332fc485947e32918864fb2</hash>
<hash>37290d74ac4d186e3a8e5785d259d2ec04fac91ae28092e7620ec8bc99e830aa</hash>
</pieces>
<url location="de" priority="1">ftp://ftp.example.com/example.ext</url>
<url location="fr" priority="1">http://example.com/example.ext</url>
<metaurl mediatype="torrent" priority="2">http://example.com/example.ext.torrent</metaurl>
<signature mediatype="application/pgp-signature">a signature</signature>
</file>
</metalink>