diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-29 11:30:45 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-29 11:30:45 +0000 |
commit | 43d601641f3476962c580c3b0490874a6e79d260 (patch) | |
tree | c9b4b7cc1f30dfdb419930e45aabf8a46e43a460 /ssl | |
parent | 55f78baf32f213301a0e8d6c6e7f40bd3b9857b1 (diff) | |
download | openssl-43d601641f3476962c580c3b0490874a6e79d260.tar.gz |
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 'ssl')
-rw-r--r-- | ssl/s3_srvr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index c687da9b2e..3db3e78d5e 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -1717,7 +1717,7 @@ static int ssl3_get_client_key_exchange(SSL *s) s->method->ssl3_enc->generate_master_secret(s, s->session->master_key, p,i); - memset(p,0,i); + OPENSSL_cleanse(p,i); } else #endif @@ -1780,7 +1780,7 @@ static int ssl3_get_client_key_exchange(SSL *s) s->session->master_key_length= s->method->ssl3_enc->generate_master_secret(s, s->session->master_key,p,i); - memset(p,0,i); + OPENSSL_cleanse(p,i); } else #endif |