Only dump session data after we have received it
authorMatt Caswell <matt@openssl.org>
Mon, 25 Jun 2018 15:46:57 +0000 (16:46 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 26 Jun 2018 09:07:01 +0000 (10:07 +0100)
commit20c0bce50654b5dfa70d8cec4fed719b3cce65fb
tree867bb5dd689d7fc2c814aef5b5a83d79e5fcd2c6
parent71419442a279a12c2e19a097b5c7e01c29d1fc9c
Only dump session data after we have received it

s_client was dumping session data at the end of the handshake. In TLSv1.3
we don't have session data until receipt of a NewSessionTicket message
which happens post-handshake. Therefore we delay dumping the session data
until that message has arrived if TLSv1.3 has been negotiated.

Fixes #6482

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6590)
apps/s_client.c