diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-29 12:30:45 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-29 12:30:45 +0100 |
commit | 43d601641f3476962c580c3b0490874a6e79d260 (patch) | |
tree | c9b4b7cc1f30dfdb419930e45aabf8a46e43a460 /crypto/mdc2 | |
parent | Have all tests use EXIT() to exit rather than exit(), since the latter doesn't (diff) | |
download | openssl-43d601641f3476962c580c3b0490874a6e79d260.tar.xz openssl-43d601641f3476962c580c3b0490874a6e79d260.zip |
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); } |