From 43d601641f3476962c580c3b0490874a6e79d260 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 29 Nov 2002 11:30:45 +0000 Subject: A few more memset()s converted to OPENSSL_cleanse(). I *think* I got them all covered by now, bu please, if you find any more, tell me and I'll correct it. PR: 343 --- crypto/md5/md5_one.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/md5') diff --git a/crypto/md5/md5_one.c b/crypto/md5/md5_one.c index b89dec850d..c67eb795ca 100644 --- a/crypto/md5/md5_one.c +++ b/crypto/md5/md5_one.c @@ -89,7 +89,7 @@ unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md) } #endif MD5_Final(md,&c); - memset(&c,0,sizeof(c)); /* security consideration */ + OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */ return(md); } -- cgit v1.2.3