diff options
author | Simon Glass <sjg@chromium.org> | 2020-03-18 20:44:06 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-01 16:45:09 +0300 |
commit | 72188f546291cfadea99e9383c133d6aaa37d87d (patch) | |
tree | c950369be789dcb92fcd90c15ed48a889a736e78 /lib/rsa/rsa-sign.c | |
parent | b008677daf2a9dc0335260c7c4e24390487fe0ca (diff) | |
download | u-boot-72188f546291cfadea99e9383c133d6aaa37d87d.tar.xz |
image: Use constants for 'required' and 'key-name-hint'
These are used in multiple places so update them to use a shared #define.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'lib/rsa/rsa-sign.c')
-rw-r--r-- | lib/rsa/rsa-sign.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c index 6400ef63d6..580c744709 100644 --- a/lib/rsa/rsa-sign.c +++ b/lib/rsa/rsa-sign.c @@ -792,8 +792,8 @@ int rsa_add_verify_data(struct image_sign_info *info, void *keydest) } if (!ret) { - ret = fdt_setprop_string(keydest, node, "key-name-hint", - info->keyname); + ret = fdt_setprop_string(keydest, node, FIT_KEY_HINT, + info->keyname); } if (!ret) ret = fdt_setprop_u32(keydest, node, "rsa,num-bits", bits); @@ -815,7 +815,7 @@ int rsa_add_verify_data(struct image_sign_info *info, void *keydest) info->name); } if (!ret && info->require_keys) { - ret = fdt_setprop_string(keydest, node, "required", + ret = fdt_setprop_string(keydest, node, FIT_KEY_REQUIRED, info->require_keys); } done: |