summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorShiji Yang <[email protected]>2025-06-20 00:38:17 +0800
committerTom Rini <[email protected]>2025-06-22 10:16:39 -0600
commit961e260cdcd01d68c8dae87eef67e116f1a67aed (patch)
treeff2602c7aecbd82557516acb4167af48ae44590f /include/image.h
parent31e215fde81417299e45a6ae4a7ee880fac84c37 (diff)
lib: rsa: fix compilation error without openssl
The symbol TOOLS_IMAGE_PRE_LOAD doesn't depend on TOOLS_LIBCRYPTO. If we choose to build tools without openssl, rsa_verify_openssl() will attempt to call the unavailable openssl library functions. Fixes: 942c8c8e6697 ("rsa: Add rsa_verify_openssl() to use openssl for host builds") Signed-off-by: Shiji Yang <[email protected]>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index c1db8383459..5f4e23a0ae9 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1688,7 +1688,7 @@ struct sig_header_s {
*/
int image_pre_load(ulong addr);
-#if defined(USE_HOSTCC)
+#if defined(USE_HOSTCC) && CONFIG_IS_ENABLED(LIBCRYPTO)
/**
* rsa_verify_openssl() - Verify a signature against some data with openssl API
*