mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
MessageDigestHelper is introduced in order to simplify the use of message digest. Removed repeated code. The message digest algorithm is now specified by string, like "sha1", "md5". * src/messageDigest.{h, cc} * src/MessageDigestHelper.{h, cc}: New class. * src/DefaultPieceStorage.cc * src/DefaultBtContext.{h, cc} (computeFastSet): New function. (setInfoHash): Added for unit testing. (setNumPieces): Added for unit testing. * src/DefaultBtInteractive.cc * src/BtPieceMessage.cc * src/Peer.cc * src/Checksum.h * src/message.h * src/IteratableChecksumValidator.h * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator inside it. * src/SegmentMan.{h, cc} (checkIntegrity): Removed. * src/IteratableChunkChecksumValidator.{h, cc} * src/Util.h (sha1Sum): Removed. (simpleMessageDigest): Removed. (fileChecksum): Removed. (computeFastSet): Removed. * src/ShaVisitor.cc * src/ChunkChecksum.h * src/DownloadCommand.cc Removed messageDigest virtual functions. * src/MultiDiskAdaptor.{h, cc} * src/DiskAdaptor.h * src/ByteArrayDiskWriter.h * src/DiskWriter.h * src/DiskAdaptorWriter.h * src/AbstractSingleDiskAdaptor.{h, cc} * src/AbstractDiskWriter.{h, cc} Fixed comilation error when message digest is disabled. * src/MetalinkEntry.{h, cc} * src/MetalinkRequestInfo.cc Removed srandom and random. * src/SimpleRandomizer.h Added size() virtual function to DiskAdaptor * src/MultiDiskAdaptor.h Fixed the bug that causes that files are not opened correctly in multi-file torrent. * src/TorrentRequestInfo.cc * src/MultiDiskAdaptor.cc Added SHA256 support * src/messageDigest.cc * src/Xml2MetalinkProcessor.cc Show supported message digest algorithms * src/main.cc Updated contact info. * src/main.cc
64 lines
2.4 KiB
XML
64 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<metalink version="3.0" xmlns="http://www.metalinker.org/">
|
|
<publisher>
|
|
<name>aria2</name>
|
|
<url>http://aria2.sourceforge.net/</url>
|
|
</publisher>
|
|
<description>The high speed download utility</description>
|
|
<files>
|
|
<file name="aria2-0.5.2.tar.bz2">
|
|
<version>0.5.2</version>
|
|
<language>en-US</language>
|
|
<os>Linux-x86</os>
|
|
<verification>
|
|
<hash type="sha1">a96cf3f0266b91d87d5124cf94326422800b627d</hash>
|
|
<hash type="md5">fc4d834e89c18c99b2615d902750948c</hash>
|
|
</verification>
|
|
<resources>
|
|
<url type="ftp" location="jp" preference="100">ftp://ftphost/aria2-0.5.2.tar.bz2</url>
|
|
<url type="http" location="us" preference="100">http://httphost/aria2-0.5.2.tar.bz2</url>
|
|
</resources>
|
|
</file>
|
|
<file name="aria2-0.5.1.tar.bz2">
|
|
<size>345689</size>
|
|
<version>0.5.1</version>
|
|
<language>ja-JP</language>
|
|
<os>Linux-m68k</os>
|
|
<verification>
|
|
<hash type="sha1">4c255b0ed130f5ea880f0aa061c3da0487e251cc</hash>
|
|
<hash type="md5">92296e19c406d77d21bda0bb944eac46</hash>
|
|
<pieces length="262144" type="sha1">
|
|
<hash piece="0">179463a88d79cbf0b1923991708aead914f26142</hash>
|
|
<hash piece="1">fecf8bc9a1647505fe16746f94e97a477597dbf3</hash>
|
|
</pieces>
|
|
</verification>
|
|
<resources>
|
|
<url type="ftp" preference="100">ftp://ftphost/aria2-0.5.1.tar.bz2</url>
|
|
<url type="http" preference="100">http://httphost/aria2-0.5.1.tar.bz2</url>
|
|
</resources>
|
|
</file>
|
|
<file name="NoVerificationHash">
|
|
<resources>
|
|
<url type="ftp" preference="100">ftp://host/file</url>
|
|
</resources>
|
|
</file>
|
|
<file name="UnsupportedVerificationHashTypeIncluded">
|
|
<verification>
|
|
<hash type="notsupported">92296e19c406d77d21bda0bb944eac46</hash>
|
|
<hash type="sha1">4c255b0ed130f5ea880f0aa061c3da0487e251cc</hash>
|
|
<pieces length="262144" type="notsupported">
|
|
<hash piece="0">179463a88d79cbf0b1923991708aead914f26142</hash>
|
|
<hash piece="1">fecf8bc9a1647505fe16746f94e97a477597dbf3</hash>
|
|
</pieces>
|
|
<pieces length="262144" type="sha1">
|
|
<hash piece="0">179463a88d79cbf0b1923991708aead914f26142</hash>
|
|
<hash piece="1">fecf8bc9a1647505fe16746f94e97a477597dbf3</hash>
|
|
</pieces>
|
|
</verification>
|
|
<resources>
|
|
<url type="ftp" preference="100">ftp://host/file</url>
|
|
</resources>
|
|
</file>
|
|
</files>
|
|
</metalink>
|