Eliminate unused buffers from ssl3_change_cipher_state
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7971)
(cherry picked from commit 9c5ef4ea48
)
This commit is contained in:
parent
bb61be393f
commit
d7389c8261
1 changed files with 0 additions and 6 deletions
|
@ -90,8 +90,6 @@ static int ssl3_generate_key_block(SSL *s, unsigned char *km, int num)
|
||||||
int ssl3_change_cipher_state(SSL *s, int which)
|
int ssl3_change_cipher_state(SSL *s, int which)
|
||||||
{
|
{
|
||||||
unsigned char *p, *mac_secret;
|
unsigned char *p, *mac_secret;
|
||||||
unsigned char exp_key[EVP_MAX_KEY_LENGTH];
|
|
||||||
unsigned char exp_iv[EVP_MAX_IV_LENGTH];
|
|
||||||
unsigned char *ms, *key, *iv;
|
unsigned char *ms, *key, *iv;
|
||||||
EVP_CIPHER_CTX *dd;
|
EVP_CIPHER_CTX *dd;
|
||||||
const EVP_CIPHER *c;
|
const EVP_CIPHER *c;
|
||||||
|
@ -239,12 +237,8 @@ int ssl3_change_cipher_state(SSL *s, int which)
|
||||||
}
|
}
|
||||||
|
|
||||||
s->statem.enc_write_state = ENC_WRITE_STATE_VALID;
|
s->statem.enc_write_state = ENC_WRITE_STATE_VALID;
|
||||||
OPENSSL_cleanse(exp_key, sizeof(exp_key));
|
|
||||||
OPENSSL_cleanse(exp_iv, sizeof(exp_iv));
|
|
||||||
return 1;
|
return 1;
|
||||||
err:
|
err:
|
||||||
OPENSSL_cleanse(exp_key, sizeof(exp_key));
|
|
||||||
OPENSSL_cleanse(exp_iv, sizeof(exp_iv));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue