aboutsummaryrefslogtreecommitdiff
path: root/src/tool_metalink.h
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2012-11-13 13:09:43 +0100
committerKamil Dudka <kdudka@redhat.com>2012-11-13 13:17:45 +0100
commit1099f3a0715f2bad376915122dba2922c33620a3 (patch)
tree709addb3298fffa7ca0e9e81a91dcfb58fd415bf /src/tool_metalink.h
parent6a4bdb027bb7d44ba33dc00ef4c0a19f929c55fd (diff)
tool_metalink: fix error detection of hash alg initialization
The {MD5,SHA1,SHA256}_Init functions from OpenSSL are called directly without any wrappers and they return 1 for success, 0 otherwise. Hence, we have to use the same approach in all the wrapper functions that are used for the other crypto libraries. This commit fixes a regression introduced in commit dca8ae5f.
Diffstat (limited to 'src/tool_metalink.h')
-rw-r--r--src/tool_metalink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tool_metalink.h b/src/tool_metalink.h
index 3cb9461b6..0a69c459e 100644
--- a/src/tool_metalink.h
+++ b/src/tool_metalink.h
@@ -23,7 +23,9 @@
***************************************************************************/
#include "tool_setup.h"
+/* returns 1 for success, 0 otherwise (we use OpenSSL *_Init fncs directly) */
typedef int (* Curl_digest_init_func)(void *context);
+
typedef void (* Curl_digest_update_func)(void *context,
const unsigned char *data,
unsigned int len);