|
@@ -495,9 +495,8 @@ int tls1_change_cipher_state(SSL *s, int which) |
|
|
unsigned key_len, iv_len, mac_secret_len; |
|
|
unsigned key_len, iv_len, mac_secret_len; |
|
|
const unsigned char *key_data; |
|
|
const unsigned char *key_data; |
|
|
|
|
|
|
|
|
/* Reset sequence number to zero. |
|
|
|
|
|
* TODO(davidben): Is this redundant with dtls1_reset_seq_numbers? */ |
|
|
|
|
|
if (SSL_IS_DTLS(s)) |
|
|
|
|
|
|
|
|
/* Reset sequence number to zero. */ |
|
|
|
|
|
if (!SSL_IS_DTLS(s)) |
|
|
memset(is_read ? s->s3->read_sequence : s->s3->write_sequence, 0, 8); |
|
|
memset(is_read ? s->s3->read_sequence : s->s3->write_sequence, 0, 8); |
|
|
|
|
|
|
|
|
/* key_arg is used for SSLv2. We don't need it for TLS. */ |
|
|
/* key_arg is used for SSLv2. We don't need it for TLS. */ |
|
|