Skip to content
Snippets Groups Projects
Commit d84da52d authored by Steve Holme's avatar Steve Holme
Browse files

md5: Return CURLcode from the internally accessible functions

Following 28f826b3 to return CURLE_OK instead of numeric 0.
parent 90d9e946
No related branches found
No related tags found
No related merge requests found
...@@ -545,7 +545,7 @@ MD5_context *Curl_MD5_init(const MD5_params *md5params) ...@@ -545,7 +545,7 @@ MD5_context *Curl_MD5_init(const MD5_params *md5params)
return ctxt; return ctxt;
} }
int Curl_MD5_update(MD5_context *context, CURLcode Curl_MD5_update(MD5_context *context,
const unsigned char *data, const unsigned char *data,
unsigned int len) unsigned int len)
{ {
...@@ -554,7 +554,7 @@ int Curl_MD5_update(MD5_context *context, ...@@ -554,7 +554,7 @@ int Curl_MD5_update(MD5_context *context,
return CURLE_OK; 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); (*context->md5_hash->md5_final_func)(result, context->md5_hashctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment