diff options
author | jsing <> | 2014-06-08 15:10:14 +0000 |
---|---|---|
committer | jsing <> | 2014-06-08 15:10:14 +0000 |
commit | 48785f83a9f6abc9abdda0e64947adc49f083d87 (patch) | |
tree | eeaa4bb55da13a0440a55e4d626f2f38e5d93b9e /src/lib/libssl/ssl3.h | |
parent | 6edaa113208368ea663f46ef4188ba92cadb51a4 (diff) | |
download | openbsd-48785f83a9f6abc9abdda0e64947adc49f083d87.tar.gz openbsd-48785f83a9f6abc9abdda0e64947adc49f083d87.tar.bz2 openbsd-48785f83a9f6abc9abdda0e64947adc49f083d87.zip |
Add a define for the SSLv3 sequence size and use it, rather than sprinkling
magic numbers around.
ok deraadt@
Diffstat (limited to 'src/lib/libssl/ssl3.h')
-rw-r--r-- | src/lib/libssl/ssl3.h | 5 |
1 files changed, 3 insertions, 2 deletions
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" { | |||
232 | 232 | ||
233 | #define SSL3_MASTER_SECRET_SIZE 48 | 233 | #define SSL3_MASTER_SECRET_SIZE 48 |
234 | #define SSL3_RANDOM_SIZE 32 | 234 | #define SSL3_RANDOM_SIZE 32 |
235 | #define SSL3_SEQUENCE_SIZE 8 | ||
235 | #define SSL3_SESSION_ID_SIZE 32 | 236 | #define SSL3_SESSION_ID_SIZE 32 |
236 | #define SSL3_RT_HEADER_LENGTH 5 | 237 | #define SSL3_RT_HEADER_LENGTH 5 |
237 | 238 | ||
@@ -389,10 +390,10 @@ typedef struct ssl3_state_st { | |||
389 | long flags; | 390 | long flags; |
390 | int delay_buf_pop_ret; | 391 | int delay_buf_pop_ret; |
391 | 392 | ||
392 | unsigned char read_sequence[8]; | 393 | unsigned char read_sequence[SSL3_SEQUENCE_SIZE]; |
393 | int read_mac_secret_size; | 394 | int read_mac_secret_size; |
394 | unsigned char read_mac_secret[EVP_MAX_MD_SIZE]; | 395 | unsigned char read_mac_secret[EVP_MAX_MD_SIZE]; |
395 | unsigned char write_sequence[8]; | 396 | unsigned char write_sequence[SSL3_SEQUENCE_SIZE]; |
396 | int write_mac_secret_size; | 397 | int write_mac_secret_size; |
397 | unsigned char write_mac_secret[EVP_MAX_MD_SIZE]; | 398 | unsigned char write_mac_secret[EVP_MAX_MD_SIZE]; |
398 | 399 | ||