summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/md4/md4_one.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/md4/md4_one.c')
-rw-r--r--crypto/openssl/crypto/md4/md4_one.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/md4/md4_one.c b/crypto/openssl/crypto/md4/md4_one.c
index 87a995d..0056550 100644
--- a/crypto/openssl/crypto/md4/md4_one.c
+++ b/crypto/openssl/crypto/md4/md4_one.c
@@ -59,6 +59,7 @@
#include <stdio.h>
#include <string.h>
#include <openssl/md4.h>
+#include <openssl/crypto.h>
#ifdef CHARSET_EBCDIC
#include <openssl/ebcdic.h>
@@ -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);
}
OpenPOWER on IntegriCloud