mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00: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:
parent
99f844ba3a
commit
c033dc8c0c
6 changed files with 16 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue