summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authorjsing <>2021-07-19 08:42:24 +0000
committerjsing <>2021-07-19 08:42:24 +0000
commit55a704a90e9e377c223d07834fbadb44be0ab0a2 (patch)
treefcdf7be991a935818048c885037a88e82337072d /src/lib/libssl/d1_both.c
parent4de658e74ecddfe0253c2d0c886a1e9a75a076cf (diff)
downloadopenbsd-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/d1_both.c')
-rw-r--r--src/lib/libssl/d1_both.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 2e5e86641c..61dc47b4b7 100644
--- a/src/lib/libssl/d1_both.c
+++ b/src/lib/libssl/d1_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_both.c,v 1.76 2021/07/01 17:53:39 jsing Exp $ */ 1/* $OpenBSD: d1_both.c,v 1.77 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.
@@ -1202,11 +1202,3 @@ dtls1_get_message_header(unsigned char *data, struct hm_header_st *msg_hdr)
1202 1202
1203 return 1; 1203 return 1;
1204} 1204}
1205
1206void
1207dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr)
1208{
1209 memset(ccs_hdr, 0, sizeof(struct ccs_header_st));
1210
1211 ccs_hdr->type = *(data++);
1212}