From: Steve Holme Date: Mon, 15 Apr 2019 21:38:20 +0000 (+0100) Subject: md5: Return CURLcode from the internally accessible functions X-Git-Tag: curl-7_65_0~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d84da52d;p=curl md5: Return CURLcode from the internally accessible functions Following 28f826b3 to return CURLE_OK instead of numeric 0. --- diff --git a/lib/md5.c b/lib/md5.c index 44602b040..5c195f28d 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -545,7 +545,7 @@ MD5_context *Curl_MD5_init(const MD5_params *md5params) return ctxt; } -int Curl_MD5_update(MD5_context *context, +CURLcode Curl_MD5_update(MD5_context *context, const unsigned char *data, unsigned int len) { @@ -554,7 +554,7 @@ int Curl_MD5_update(MD5_context *context, return CURLE_OK; } -int Curl_MD5_final(MD5_context *context, unsigned char *result) +CURLcode Curl_MD5_final(MD5_context *context, unsigned char *result) { (*context->md5_hash->md5_final_func)(result, context->md5_hashctx);