Set the server sig algs before calling the session_secret_cb
authorMatt Caswell <matt@openssl.org>
Tue, 30 Apr 2024 13:31:26 +0000 (14:31 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 6 May 2024 08:44:14 +0000 (10:44 +0200)
commit91c7ab27cebe4e6f6a6376e0a691736a2534fdd0
tree5154718f324d38be13645dd23766a892513997d7
parentc8dddc61d49f84d1667de97e9548f07ccc92dddf
Set the server sig algs before calling the session_secret_cb

Setting the server sig algs sets up the certificate "s3->tmp.valid_flags".
These are needed when calling ssl3_choose_cipher() which can happen
immediately after calling the session_secret_cb

Fixes #24213

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24309)
ssl/statem/statem_srvr.c