From dca8ae5f02a849b0d64befc2023876439396adee Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 30 Oct 2012 14:21:54 +0100 Subject: tool_metalink: allow to handle failure of hash alg initialization --- src/tool_metalink.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tool_metalink.h') 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, -- cgit v1.2.3