After the latest round of header-hacking, regenerate the dependencies in
[openssl.git] / crypto / md4 / md4_one.c
index 87a995d38d434f68ff3bb6056d887abe6f03880b..64601b62dfa9fda1d177c7103134d1a717c9ecd9 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <openssl/md4.h>
+#include <openssl/crypto.h>
 
 #ifdef CHARSET_EBCDIC
 #include <openssl/ebcdic.h>
 #endif
 
-unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md)
+unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md)
        {
        MD4_CTX c;
        static unsigned char m[MD4_DIGEST_LENGTH];
@@ -89,7 +90,7 @@ unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md)
        }
 #endif
        MD4_Final(md,&c);
-       memset(&c,0,sizeof(c)); /* security consideration */
+       OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */
        return(md);
        }