We remove the dependency on the SSL object. Instead we check if the
record layer has already set an alert code.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18132)
* 1: Success or MTE decryption failed (MAC will be randomised)
*/
if (enc_err == 0) {
- if (ossl_statem_in_error(s)) {
- /* SSLfatal() already got called */
+ if (rl->alert != 0) {
+ /* RLAYERfatal() already got called */
goto end;
}
if (num_recs == 1 && ossl_statem_skip_early_data(s)) {
}
if (enc_err == 0) {
- if (ossl_statem_in_error(s)) {
- /* We already called SSLfatal() */
+ if (rl->alert != 0) {
+ /* We already called RLAYERfatal() */
goto end;
}
/*