]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
image: Allow @ in node names when not using signatures
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:32:56 +0000 (16:32 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
If signature verification is not in use we don't need to worry about
the risk of using @ in node names. Update fit_image_verify() to allow
it if the function is not enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/image-fit.c

index 8e23d51cf255e1e5abfe6c4d42a0793f0f11a60c..28bd8e78c75e129ece08dfeca4869d551b67259b 100644 (file)
@@ -1377,7 +1377,7 @@ int fit_image_verify(const void *fit, int image_noffset)
        size_t          size;
        char            *err_msg = "";
 
-       if (strchr(name, '@')) {
+       if (IS_ENABLED(CONFIG_FIT_SIGNATURE) && strchr(name, '@')) {
                /*
                 * We don't support this since libfdt considers names with the
                 * name root but different @ suffix to be equal