Fix ticket callbacks in TLSv1.3
authorMatt Caswell <matt@openssl.org>
Tue, 8 May 2018 13:50:17 +0000 (14:50 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 11 May 2018 13:51:08 +0000 (14:51 +0100)
commitc0638adeec58327f79d4bf549766f4cb094a1e2e
treeff3c7666fa2ca564c9957683479b14efc1e1f684
parent5fe371570770e46f2d9e19e8b81c8bc0d47ec0d6
Fix ticket callbacks in TLSv1.3

The return value from the ticket_key callback was not properly handled in
TLSv1.3, so that a ticket was *always* renewed even if the callback
requested that it should not be.

Also the ticket decrypt callback was not being called at all in TLSv1.3.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6198)
ssl/statem/statem_lib.c
ssl/statem/statem_srvr.c
ssl/t1_lib.c
test/sslapitest.c