summaryrefslogtreecommitdiff
path: root/src/tool_metalink.h
Commit message (Collapse)AuthorAgeFilesLines
* metalink: build fixes and adjustments IIYang Tse2012-06-081-13/+9
| | | | | | | | | Additionally, make hash checking ability mandatory in order to allow metalink support in curl. A command line option could be introduced to skip hash checking at runtime, but the ability to check hashes should always be built-in when providing metalink support.
* metalink: build fixes and adjustments IYang Tse2012-06-071-1/+1
|
* metalink: fix build errors when disabledDaniel Stenberg2012-05-261-1/+6
|
* Reduced #ifdef HAVE_METALINKTatsuhiro Tsujikawa2012-05-261-2/+0
|
* Disable hash check if neither OpenSSL nor GNUTLS is installed.Tatsuhiro Tsujikawa2012-05-261-0/+5
|
* Minimize usage of structs from libmetalinkTatsuhiro Tsujikawa2012-05-261-14/+19
|
* Check checksum of downloaded file if checksum is availableTatsuhiro Tsujikawa2012-05-261-0/+57
| | | | | | | | | | | | | | | Metalink file contains several hash types of checksums, such as md5, sha-1, sha-256, etc. To deal with these checksums, I created abstraction layer based on lib/curl_md5.h and lib/md5.c. Basically, they are almost the same but I changed the code so that it is not hash type dependent. Currently, GNUTLS(nettle or gcrypt) and OpenSSL functions are supported. Checksum checking is done by reopening download file. If there is an I/O error, the current implementation just prints error message and does not try next resource. In this patch, the supported hash types are: md5, sha-1 and sha-256.
* Support media-type parameter in Content-TypeTatsuhiro Tsujikawa2012-05-261-0/+6
|
* metalink: parse downloaded Metalink fileTatsuhiro Tsujikawa2012-05-261-0/+2
| | | | | Parse downloaded Metalink file and add downloads described there. Fixed compile error without metalink support.
* metalink: show help message even if disabledTatsuhiro Tsujikawa2012-05-261-7/+4
| | | | | | Print message if --metalink is used while metalink support is not enabled. Migrated Metalink support in tool_operate.c and removed operatemetalink().
* Support Metalink.Tatsuhiro Tsujikawa2012-05-261-0/+54
This change adds experimental Metalink support to curl. To enable Metalink support, run configure with --with-libmetalink. To feed Metalink file to curl, use --metalink option like this: $ curl -O --metalink foo.metalink We use libmetalink to parse Metalink files.