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/mdc2/mdc2_one.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/mdc2') diff --git a/crypto/mdc2/mdc2_one.c b/crypto/mdc2/mdc2_one.c index 6cd141b4d6..37f06c8d77 100644 --- a/crypto/mdc2/mdc2_one.c +++ b/crypto/mdc2/mdc2_one.c @@ -69,7 +69,7 @@ unsigned char *MDC2(const unsigned char *d, unsigned long n, unsigned char *md) MDC2_Init(&c); MDC2_Update(&c,d,n); MDC2_Final(md,&c); - memset(&c,0,sizeof(c)); /* security consideration */ + OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */ return(md); } -- cgit v1.2.3