Only update the server session cache when the session is ready
authorMatt Caswell <matt@openssl.org>
Wed, 14 Mar 2018 17:51:18 +0000 (17:51 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 15 Mar 2018 08:59:27 +0000 (08:59 +0000)
commit16ff13427f00753a76672317143753b83cea7982
treeecaa9fdc5116e93bafa89598f1c0b30c1f4247a5
parent5cd42251bae72ab73542019342362063e882e66f
Only update the server session cache when the session is ready

In TLSv1.3 the session is not ready until after the end of the handshake
when we are constructing the NewSessionTicket.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5621)
ssl/statem/statem_lib.c
ssl/statem/statem_srvr.c