diff options
author | jsing <> | 2021-07-19 08:42:24 +0000 |
---|---|---|
committer | jsing <> | 2021-07-19 08:42:24 +0000 |
commit | 55a704a90e9e377c223d07834fbadb44be0ab0a2 (patch) | |
tree | fcdf7be991a935818048c885037a88e82337072d /src/lib/libssl/dtls_locl.h | |
parent | 4de658e74ecddfe0253c2d0c886a1e9a75a076cf (diff) | |
download | openbsd-55a704a90e9e377c223d07834fbadb44be0ab0a2.tar.gz openbsd-55a704a90e9e377c223d07834fbadb44be0ab0a2.tar.bz2 openbsd-55a704a90e9e377c223d07834fbadb44be0ab0a2.zip |
Mop up dtls1_get_ccs_header() and struct ccs_header_st.
All this code does is read one byte from memory with an unknown length,
potentially being a one byte overread... and then nothing is actually done
with the value.
ok tb@
Diffstat (limited to 'src/lib/libssl/dtls_locl.h')
-rw-r--r-- | src/lib/libssl/dtls_locl.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libssl/dtls_locl.h b/src/lib/libssl/dtls_locl.h index 9bf1fe6661..9e0699d098 100644 --- a/src/lib/libssl/dtls_locl.h +++ b/src/lib/libssl/dtls_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dtls_locl.h,v 1.1 2021/05/16 13:56:30 jsing Exp $ */ | 1 | /* $OpenBSD: dtls_locl.h,v 1.2 2021/07/19 08:42:24 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -93,11 +93,6 @@ struct hm_header_st { | |||
93 | struct dtls1_retransmit_state saved_retransmit_state; | 93 | struct dtls1_retransmit_state saved_retransmit_state; |
94 | }; | 94 | }; |
95 | 95 | ||
96 | struct ccs_header_st { | ||
97 | unsigned char type; | ||
98 | unsigned short seq; | ||
99 | }; | ||
100 | |||
101 | struct dtls1_timeout_st { | 96 | struct dtls1_timeout_st { |
102 | /* Number of read timeouts so far */ | 97 | /* Number of read timeouts so far */ |
103 | unsigned int read_timeouts; | 98 | unsigned int read_timeouts; |
@@ -225,7 +220,6 @@ int dtls1_retransmit_buffered_messages(SSL *s); | |||
225 | void dtls1_clear_record_buffer(SSL *s); | 220 | void dtls1_clear_record_buffer(SSL *s); |
226 | int dtls1_get_message_header(unsigned char *data, | 221 | int dtls1_get_message_header(unsigned char *data, |
227 | struct hm_header_st *msg_hdr); | 222 | struct hm_header_st *msg_hdr); |
228 | void dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr); | ||
229 | void dtls1_reset_read_seq_numbers(SSL *s); | 223 | void dtls1_reset_read_seq_numbers(SSL *s); |
230 | struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); | 224 | struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); |
231 | int dtls1_check_timeout_num(SSL *s); | 225 | int dtls1_check_timeout_num(SSL *s); |