Update the s_client -sess_out feature to work for TLSv1.3
authorMatt Caswell <matt@openssl.org>
Fri, 13 Jan 2017 14:25:15 +0000 (14:25 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 30 Jan 2017 10:17:52 +0000 (10:17 +0000)
commitbe62b22b527e89061f88c0b9eaefb0410982f41e
tree62bdce920d7922a0d72f87cdbc487811a6fa8b78
parentf05bcf0f4581664f429154cdb689faef242cf843
Update the s_client -sess_out feature to work for TLSv1.3

Previously "-sess_out" wrote out the session as soon as the handshake
finished. In TLSv1.3 this won't work because the NewSessionTicket message
arrives post-handshake. Instead we use the session callback mechanism to
do this.

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