mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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: 942c8c8e66 ("rsa: Add rsa_verify_openssl() to use openssl for host builds")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user