Always call the new_session_cb when issuing a NewSessionTicket in TLSv1.3
authorMatt Caswell <matt@openssl.org>
Thu, 15 Mar 2018 17:47:29 +0000 (17:47 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 19 Mar 2018 12:21:17 +0000 (12:21 +0000)
commit32305f88509c1d9ccb3ad676209a25fa59b95488
tree465d5906e932f6f930061a32e60c003b89f2b1a9
parent51cf8ba038aae10df9895b0001715938f7ad0c75
Always call the new_session_cb when issuing a NewSessionTicket in TLSv1.3

Conceptually in TLSv1.3 there can be multiple sessions associated with a
single connection. Each NewSessionTicket issued can be considered a
separate session. We can end up issuing multiple NewSessionTickets on a
single connection at the moment (e.g. in a post-handshake auth scenario).
Each of those issued tickets should have the new_session_cb called, it
should go into the session cache separately and it should have a unique
id associated with it (so that they can be found individually in the
cache).

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5644)
ssl/ssl_sess.c
ssl/statem/statem_srvr.c
ssl/t1_lib.c
test/sslapitest.c