diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/d1_both.c | 10 |
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 | ||
| 1170 | unsigned char * | 1170 | void |
| 1171 | dtls1_set_message_header(SSL *s, unsigned char *p, unsigned char mt, | 1171 | dtls1_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 */ |
