mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 16:31:27 +01:00
lib: rsa: use FIT_ALGO_PROP constant instead of "algo" in FIT
Some FIT image properties have their string represented in include/image.h via constants. FIT_ALGO_PROP does exist and would fit the bill so let's use it instead of using a hardcoded string. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
This commit is contained in:
parent
634dcda259
commit
883359e152
@ -448,7 +448,7 @@ static int rsa_verify_with_keynode(struct image_sign_info *info,
|
||||
return -EBADF;
|
||||
}
|
||||
|
||||
algo = fdt_getprop(blob, node, "algo", NULL);
|
||||
algo = fdt_getprop(blob, node, FIT_ALGO_PROP, NULL);
|
||||
if (!algo) {
|
||||
debug("%s: Missing 'algo' property\n", __func__);
|
||||
return -EFAULT;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user