diff options
author | 2020-08-11 18:40:24 +0000 | |
---|---|---|
committer | 2020-08-11 18:40:24 +0000 | |
commit | 8d080487a69a0f4f552cd695f033162542ab973e (patch) | |
tree | dd00d534c493f66209ce0b6d47e1a7613a366eca | |
parent | In SSL_new() just 'goto err' on allocation failure. (diff) | |
download | wireguard-openbsd-8d080487a69a0f4f552cd695f033162542ab973e.tar.xz wireguard-openbsd-8d080487a69a0f4f552cd695f033162542ab973e.zip |
Use SSL3_SEQUENCE_SIZE for last_write_sequence[] rather than hardcoding.
ok inoguchi@ tb@
-rw-r--r-- | lib/libssl/ssl_locl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h index 4faf0f245fc..676f404352a 100644 --- a/lib/libssl/ssl_locl.h +++ b/lib/libssl/ssl_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_locl.h,v 1.282 2020/07/07 19:31:11 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.283 2020/08/11 18:40:24 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -960,7 +960,7 @@ typedef struct dtls1_state_internal_st { unsigned short handshake_read_seq; /* save last sequence number for retransmissions */ - unsigned char last_write_sequence[8]; + unsigned char last_write_sequence[SSL3_SEQUENCE_SIZE]; /* Received handshake records (processed and unprocessed) */ record_pqueue unprocessed_rcds; |