diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-29 11:31:51 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-29 11:31:51 +0000 |
commit | c9ea7400b49f51dd2b4657be0264c437dfd29bf3 (patch) | |
tree | 540a9f03a13bf3ea20a8a7f9becbfbb8878ebfc4 /crypto/mdc2 | |
parent | 9fa15b6ff88dc33a705fed7fc044639143dd394e (diff) |
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
Diffstat (limited to 'crypto/mdc2')
-rw-r--r-- | crypto/mdc2/mdc2_one.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |