diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2019-01-02 13:28:07 +0300 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-01-03 14:17:31 +0000 |
commit | d072eea2e39c4444ecce3598556053a4c552d9a2 (patch) | |
tree | 10b3159815c318c6220eda49c26eacc4a64e78f4 | |
parent | 51adf14a948ac0999114f3807fa6ceae1bb060ac (diff) | |
download | openssl-d072eea2e39c4444ecce3598556053a4c552d9a2.tar.gz |
Remove unused variables from tls1_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)
-rw-r--r-- | ssl/t1_enc.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index adcc62619f..9b58bd8684 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -85,10 +85,6 @@ static int tls1_generate_key_block(SSL *s, unsigned char *km, size_t num) int tls1_change_cipher_state(SSL *s, int which) { unsigned char *p, *mac_secret; - unsigned char tmp1[EVP_MAX_KEY_LENGTH]; - unsigned char tmp2[EVP_MAX_KEY_LENGTH]; - unsigned char iv1[EVP_MAX_IV_LENGTH * 2]; - unsigned char iv2[EVP_MAX_IV_LENGTH * 2]; unsigned char *ms, *key, *iv; EVP_CIPHER_CTX *dd; const EVP_CIPHER *c; @@ -408,16 +404,8 @@ int tls1_change_cipher_state(SSL *s, int which) printf("\n"); #endif - OPENSSL_cleanse(tmp1, sizeof(tmp1)); - OPENSSL_cleanse(tmp2, sizeof(tmp1)); - OPENSSL_cleanse(iv1, sizeof(iv1)); - OPENSSL_cleanse(iv2, sizeof(iv2)); return 1; err: - OPENSSL_cleanse(tmp1, sizeof(tmp1)); - OPENSSL_cleanse(tmp2, sizeof(tmp1)); - OPENSSL_cleanse(iv1, sizeof(iv1)); - OPENSSL_cleanse(iv2, sizeof(iv2)); return 0; } |