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)
committerMatt Caswell <matt@openssl.org>
Tue, 27 Sep 2022 12:55:32 +0000 (13:55 +0100)
commit61f8d46d49eeee87d44cfa74acfb2f81393b92dd
tree2e1b3e38321cc2158e610808ce4e0b3d7803854f
parent104c60e90016401c4319eb7c80363f742bc74643
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: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19249)
ssl/statem/statem.c
ssl/statem/statem_srvr.c