Matt Caswell 4f9fab6bd0 Add ticket length before buffering DTLS message
In ssl3_send_new_session_ticket the message to be sent is constructed. We
skip adding the length of the session ticket initially, then call
ssl_set_handshake_header, and finally go back and add in the length of the
ticket. Unfortunately, in DTLS, ssl_set_handshake_header also has the side
effect of buffering the message for subsequent retransmission if required.
By adding the ticket length after the call to ssl_set_handshake_header the
message that is buffered is incomplete, causing an invalid message to be
sent on retransmission.

Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-25 12:24:36 +00:00
..
2015-03-23 15:23:11 +00:00
2015-03-23 15:23:11 +00:00
2015-03-23 15:23:11 +00:00
2015-03-23 16:02:21 +00:00
2015-03-23 15:23:11 +00:00
2015-02-06 10:52:12 -05:00
2015-02-27 20:29:03 +00:00
2012-07-05 13:20:19 +00:00
2015-02-06 10:52:12 -05:00
2015-01-22 09:20:09 +00:00
2015-03-24 12:05:05 +00:00
2015-03-23 15:23:24 +00:00
2015-01-27 12:34:45 -05:00
2015-03-24 23:17:16 -04:00
2015-03-23 15:23:11 +00:00
2015-03-24 23:17:16 -04:00
2015-03-23 15:23:11 +00:00
2015-03-23 15:23:11 +00:00
2015-03-23 15:23:11 +00:00
2015-03-23 15:23:00 +00:00
2015-01-22 09:20:09 +00:00
2015-01-22 09:20:09 +00:00
2015-03-23 15:23:11 +00:00
2015-03-24 23:17:16 -04:00
2015-03-23 15:23:11 +00:00
2015-03-24 23:17:16 -04:00
2015-03-23 21:08:20 +01:00
2015-03-23 15:23:24 +00:00
2015-03-23 15:23:11 +00:00
2015-03-23 15:23:11 +00:00
2015-03-23 15:23:11 +00:00
2015-01-30 14:43:57 +01:00
2015-03-24 23:17:16 -04:00
2015-01-28 15:37:16 -05:00
2015-03-23 15:23:11 +00:00
2015-02-06 10:52:12 -05:00
2015-03-23 15:23:00 +00:00