Revert "Update to 7.40.1"
[platform/upstream/curl.git] / lib / md4.c
index 84c5202..6930e02 100644 (file)
--- a/lib/md4.c
+++ b/lib/md4.c
    documentation and/or software.
  */
 
-#include "setup.h"
+#include "curl_setup.h"
 
 /* NSS crypto library does not provide the MD4 hash algorithm, so that we have
  * a local implementation of it */
 #ifdef USE_NSS
 
 #include "curl_md4.h"
-#include <string.h>
+#include "warnless.h"
 
 typedef unsigned int UINT4;
 
@@ -276,7 +276,7 @@ void Curl_md4it(unsigned char *output, const unsigned char *input, size_t len)
 {
   MD4_CTX ctx;
   MD4Init(&ctx);
-  MD4Update(&ctx, input, (unsigned int)len);
+  MD4Update(&ctx, input, curlx_uztoui(len));
   MD4Final(output, &ctx);
 }
 #endif /* USE_NSS */