diff options
author | Matt Caswell <matt@openssl.org> | 2015-02-05 13:59:16 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-25 12:29:48 +0000 |
commit | a20718fa2c0a45e6acb975cf6c0438c3ebd45b13 (patch) | |
tree | 5e602aa47baace500c21f86815c47ee75ef73b79 /crypto/srp | |
parent | 4285b851637a3da8bd6e96848f0deffb6be5e626 (diff) |
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
Diffstat (limited to 'crypto/srp')
0 files changed, 0 insertions, 0 deletions