summaryrefslogtreecommitdiff
path: root/lib/md4.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2020-02-23 18:46:24 +0000
committerSteve Holme <steve_holme@hotmail.com>2020-02-23 18:47:32 +0000
commitbaf0b680f955833048eaeaf12c4bed759c337904 (patch)
tree99340b80baa8c3966f10ec390fd38906ea008d93 /lib/md4.c
parent1f4911bc263c8f2aa03fac9e45b82e6c9f418423 (diff)
downloadcurl-baf0b680f955833048eaeaf12c4bed759c337904.tar.gz
md4: Use const for the length input parameter
This keeps the interface the same as md5 and sha256.
Diffstat (limited to 'lib/md4.c')
-rw-r--r--lib/md4.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/md4.c b/lib/md4.c
index 2cf674557..87418647a 100644
--- a/lib/md4.c
+++ b/lib/md4.c
@@ -508,9 +508,11 @@ static void MD4_Final(unsigned char *result, MD4_CTX *ctx)
#endif /* CRYPTO LIBS */
-void Curl_md4it(unsigned char *output, const unsigned char *input, size_t len)
+void Curl_md4it(unsigned char *output, const unsigned char *input,
+ const size_t len)
{
MD4_CTX ctx;
+
MD4_Init(&ctx);
MD4_Update(&ctx, input, curlx_uztoui(len));
MD4_Final(output, &ctx);