Add additional guard for sha256 in tests

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
Ben Taylor 2026-05-29 15:09:34 +01:00
parent 167a754c0d
commit 9c3cd1a5d4

View File

@ -91,7 +91,9 @@ static void tls_abort_transcript(void *ctx, int level,
}
abort_ctx->triggered = 1;
#if defined(PSA_WANT_ALG_SHA_256)
psa_hash_abort(&abort_ctx->ssl->handshake->fin_sha256_psa);
#endif
#if defined(PSA_WANT_ALG_SHA_384)
psa_hash_abort(&abort_ctx->ssl->handshake->fin_sha384_psa);
#endif