From 48785f83a9f6abc9abdda0e64947adc49f083d87 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 8 Jun 2014 15:10:14 +0000 Subject: Add a define for the SSLv3 sequence size and use it, rather than sprinkling magic numbers around. ok deraadt@ --- src/lib/libssl/ssl3.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl/ssl3.h') diff --git a/src/lib/libssl/ssl3.h b/src/lib/libssl/ssl3.h index 8444ccb57d..feaf0f8dd9 100644 --- a/src/lib/libssl/ssl3.h +++ b/src/lib/libssl/ssl3.h @@ -232,6 +232,7 @@ extern "C" { #define SSL3_MASTER_SECRET_SIZE 48 #define SSL3_RANDOM_SIZE 32 +#define SSL3_SEQUENCE_SIZE 8 #define SSL3_SESSION_ID_SIZE 32 #define SSL3_RT_HEADER_LENGTH 5 @@ -389,10 +390,10 @@ typedef struct ssl3_state_st { long flags; int delay_buf_pop_ret; - unsigned char read_sequence[8]; + unsigned char read_sequence[SSL3_SEQUENCE_SIZE]; int read_mac_secret_size; unsigned char read_mac_secret[EVP_MAX_MD_SIZE]; - unsigned char write_sequence[8]; + unsigned char write_sequence[SSL3_SEQUENCE_SIZE]; int write_mac_secret_size; unsigned char write_mac_secret[EVP_MAX_MD_SIZE]; -- cgit v1.2.3-55-g6feb