Matt Caswell a20718fa2c 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>
(cherry picked from commit 4f9fab6bd0253416eeace5a45142c7c4a83bc511)

Conflicts:
	ssl/s3_srvr.c
2015-03-25 12:29:48 +00:00
..
2015-03-09 10:54:06 +00:00
2015-03-19 11:11:22 +00:00
2015-02-27 20:31:28 +00:00
2015-01-22 09:31:38 +00:00
2014-11-27 21:46:00 +00:00
2015-03-19 12:58:36 +00:00
2015-03-10 10:45:52 +00:00
2015-03-11 10:45:23 +00:00
2015-03-19 11:11:22 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-03-20 12:06:12 +00:00
2015-03-08 17:31:48 +00:00
2015-01-07 02:15:35 +01:00
2015-03-20 12:09:22 +00:00
2015-01-22 09:31:38 +00:00