2022-07-11 10:02:49 +00:00
|
|
|
--- a/tools/image-host.c
|
|
|
|
+++ b/tools/image-host.c
|
2024-07-05 05:52:06 +00:00
|
|
|
@@ -1162,6 +1162,7 @@ static int fit_config_add_verification_d
|
2022-07-11 10:02:49 +00:00
|
|
|
* 2) get public key (X509_get_pubkey)
|
|
|
|
* 3) provide der format (d2i_RSAPublicKey)
|
|
|
|
*/
|
|
|
|
+#ifdef CONFIG_TOOLS_LIBCRYPTO
|
|
|
|
static int read_pub_key(const char *keydir, const void *name,
|
|
|
|
unsigned char **pubkey, int *pubkey_len)
|
|
|
|
{
|
2024-07-05 05:52:06 +00:00
|
|
|
@@ -1215,6 +1216,13 @@ err_cert:
|
2022-07-11 10:02:49 +00:00
|
|
|
fclose(f);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
+#else
|
|
|
|
+static int read_pub_key(const char *keydir, const void *name,
|
|
|
|
+ unsigned char **pubkey, int *pubkey_len)
|
|
|
|
+{
|
|
|
|
+ return -ENOSYS;
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
int fit_pre_load_data(const char *keydir, void *keydest, void *fit)
|
|
|
|
{
|