lib: rsa: fix compilation error without openssl
authorShiji Yang <yangshiji66@outlook.com>
Thu, 19 Jun 2025 16:38:17 +0000 (00:38 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 22 Jun 2025 16:16:39 +0000 (10:16 -0600)
commit961e260cdcd01d68c8dae87eef67e116f1a67aed
treeff2602c7aecbd82557516acb4167af48ae44590f
parent31e215fde81417299e45a6ae4a7ee880fac84c37
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 <yangshiji66@outlook.com>
include/image.h
lib/rsa/rsa-verify.c
tools/image-host.c