Fix new_session_cb calls in TLSv1.3
authorMatt Caswell <matt@openssl.org>
Tue, 1 Aug 2017 09:49:47 +0000 (10:49 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 1 Aug 2017 12:09:31 +0000 (13:09 +0100)
commit5d61491c8816ebad172340aafce713e9654dea94
treec43deab8c5fef24579f1eb56efe9aabfcde6db81
parentc290853878ed2a6988521c01a8f675ed959ab5cc
Fix new_session_cb calls in TLSv1.3

If a new_session_cb is set then it was only ever getting invoked if !s->hit
is true. This is sensible for <=TLSv1.2 but does not work for TLSv1.3.

Fixes #4045

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4068)
ssl/ssl_lib.c
ssl/statem/statem_clnt.c
ssl/statem/statem_lib.c