mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 13:01:17 +02:00
image: Return destination node for add_verify_data() method
It is useful to know where the verification data was written. Update the API to return this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -301,7 +301,7 @@ static int do_add(struct signer *ctx, void *fdt, const char *key_node_name)
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
return key_node;
|
||||
}
|
||||
|
||||
int ecdsa_add_verify_data(struct image_sign_info *info, void *fdt)
|
||||
@@ -313,7 +313,7 @@ int ecdsa_add_verify_data(struct image_sign_info *info, void *fdt)
|
||||
fdt_key_name = info->keyname ? info->keyname : "default-key";
|
||||
ret = prepare_ctx(&ctx, info);
|
||||
if (ret >= 0)
|
||||
do_add(&ctx, fdt, fdt_key_name);
|
||||
ret = do_add(&ctx, fdt, fdt_key_name);
|
||||
|
||||
free_ctx(&ctx);
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user