If a ticket key callback returns 0 in TLSv1.3 don't send a ticket
authorMatt Caswell <matt@openssl.org>
Fri, 12 Aug 2022 12:24:19 +0000 (13:24 +0100)
committerHugo Landau <hlandau@openssl.org>
Tue, 20 Sep 2022 07:16:57 +0000 (08:16 +0100)
commit3e93c5fe1eab677500448e18e4274b26e4b246ae
treefa3ef11c74d674ecc723faa33b175c28efd46dfc
parent3b7a3241c225b152ba8519f540bcac5b680312c2
If a ticket key callback returns 0 in TLSv1.3 don't send a ticket

If we can't construct the ticket don't send one. This requires a change
to the TLS state machine to be able to a handle a construction function
deciding not to send a message after all.

Fixes #18977

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18990)
ssl/statem/statem.c
ssl/statem/statem_srvr.c