diff options
author | Kamil Dudka <kdudka@redhat.com> | 2012-10-30 14:21:54 +0100 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2012-11-09 10:27:10 +0100 |
commit | dca8ae5f02a849b0d64befc2023876439396adee (patch) | |
tree | 0f26ec8ab2d70dfb671f9d7a1c8b481eaa25823f /src/tool_metalink.h | |
parent | cf75a64651e927eb00d6cfe2434d8893985a865f (diff) | |
download | curl-dca8ae5f02a849b0d64befc2023876439396adee.tar.gz |
tool_metalink: allow to handle failure of hash alg initialization
Diffstat (limited to 'src/tool_metalink.h')
-rw-r--r-- | src/tool_metalink.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool_metalink.h b/src/tool_metalink.h index c35f4a2e6..3cb9461b6 100644 --- a/src/tool_metalink.h +++ b/src/tool_metalink.h @@ -23,7 +23,7 @@ ***************************************************************************/ #include "tool_setup.h" -typedef void (* Curl_digest_init_func)(void *context); +typedef int (* Curl_digest_init_func)(void *context); typedef void (* Curl_digest_update_func)(void *context, const unsigned char *data, unsigned int len); @@ -137,8 +137,8 @@ int check_metalink_content_type(const char *content_type); * -1: * Could not open file; or could not read data from file. * -2: - * No checksum in Metalink supported; or Metalink does not contain - * checksum. + * No checksum in Metalink supported, hash algorithm not available, or + * Metalink does not contain checksum. */ int metalink_check_hash(struct Configurable *config, metalinkfile *mlfile, |