From 9a89c6e9545017085c5cea2d69ea8c98fa7959b3 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Mon, 28 Oct 2024 13:16:49 +0100 Subject: [PATCH] Change verify function only with TPM_VERIFY on --- include/image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/image.h b/include/image.h index fffb7360..60aaea8f 100644 --- a/include/image.h +++ b/include/image.h @@ -131,7 +131,7 @@ int wolfBot_get_dts_size(void *dts_addr); #define wolfBoot_verify_signature_secondary wolfBoot_verify_signature_ml_dsa #endif -#if defined(WOLFBOOT_TPM) +#if defined(WOLFBOOT_TPM) && defined (WOLFBOOT_TPM_VERIFY) #undef wolfBoot_verify_signature_primary #define wolfBoot_verify_signature_primary wolfBoot_verify_signature_tpm #endif