summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authorjsing <>2017-03-04 16:32:00 +0000
committerjsing <>2017-03-04 16:32:00 +0000
commitf577988189e230bde2109492b5e88f68be9e70aa (patch)
treec02fc89f7110067633e42d3d712773bce31ccaed /src/lib/libssl/d1_both.c
parent1f1afc6cbcd63106aed19c1803381ba73c23a55f (diff)
downloadopenbsd-f577988189e230bde2109492b5e88f68be9e70aa.tar.gz
openbsd-f577988189e230bde2109492b5e88f68be9e70aa.tar.bz2
openbsd-f577988189e230bde2109492b5e88f68be9e70aa.zip
Drop the second argument of dtls1_set_message_header() and make it a void
function. Nothing makes use of the return value and the second argument was only used to produce the return value...
Diffstat (limited to 'src/lib/libssl/d1_both.c')
-rw-r--r--src/lib/libssl/d1_both.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 9aba4b85f8..0b8999b782 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.49 2017/02/07 02:08:38 beck Exp $ */ 1/* $OpenBSD: d1_both.c,v 1.50 2017/03/04 16:32:00 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.
@@ -1167,9 +1167,9 @@ dtls1_clear_record_buffer(SSL *s)
1167 } 1167 }
1168} 1168}
1169 1169
1170unsigned char * 1170void
1171dtls1_set_message_header(SSL *s, unsigned char *p, unsigned char mt, 1171dtls1_set_message_header(SSL *s, unsigned char mt, unsigned long len,
1172 unsigned long len, unsigned long frag_off, unsigned long frag_len) 1172 unsigned long frag_off, unsigned long frag_len)
1173{ 1173{
1174 /* Don't change sequence numbers while listening */ 1174 /* Don't change sequence numbers while listening */
1175 if (frag_off == 0 && !D1I(s)->listen) { 1175 if (frag_off == 0 && !D1I(s)->listen) {
@@ -1179,8 +1179,6 @@ dtls1_set_message_header(SSL *s, unsigned char *p, unsigned char mt,
1179 1179
1180 dtls1_set_message_header_int(s, mt, len, D1I(s)->handshake_write_seq, 1180 dtls1_set_message_header_int(s, mt, len, D1I(s)->handshake_write_seq,
1181 frag_off, frag_len); 1181 frag_off, frag_len);
1182
1183 return p += DTLS1_HM_HEADER_LENGTH;
1184} 1182}
1185 1183
1186/* don't actually do the writing, wait till the MTU has been retrieved */ 1184/* don't actually do the writing, wait till the MTU has been retrieved */