diff options
author | Simon Glass | 2020-03-18 11:44:06 -0600 |
---|---|---|
committer | Simon Glass | 2020-04-01 07:45:09 -0600 |
commit | 72188f546291cfadea99e9383c133d6aaa37d87d (patch) | |
tree | c950369be789dcb92fcd90c15ed48a889a736e78 /lib | |
parent | b008677daf2a9dc0335260c7c4e24390487fe0ca (diff) |
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')
-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 6400ef63d6a..580c7447093 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: |