Update create_ssl_connection() to make sure its gets a session
authorMatt Caswell <matt@openssl.org>
Thu, 19 Jan 2017 16:00:19 +0000 (16:00 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 30 Jan 2017 10:18:22 +0000 (10:18 +0000)
commit59db06f160e1572a633ca3325fa4dc0dba80f2f1
tree365f006bec6108c697dcbd045f94ab621521def6
parent4b7ffd8bbeb1c64261e10ef2050312bd183abeed
Update create_ssl_connection() to make sure its gets a session

In TLSv1.3 the connection will be created before the session is
established. In OpenSSL we send the NewSessionTicket message immediately
after the client finished has been received. Therefore we change
create_ssl_connection() to attempt a read of application data after the
handshake has completed. We expect this to fail but it will force the
reading of the NewSessionTicket and the session to be set up.

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