projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919f550
)
FIT: make iminfo check hashes of all images in FIT, return 1 on failed check
author
Bartlomiej Sieka
<tur@semihalf.com>
Tue, 9 Sep 2008 10:58:16 +0000
(12:58 +0200)
committer
Wolfgang Denk
<wd@denx.de>
Tue, 9 Sep 2008 13:58:57 +0000
(15:58 +0200)
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
common/cmd_bootm.c
patch
|
blob
|
history
diff --git
a/common/cmd_bootm.c
b/common/cmd_bootm.c
index b023e2635e18dc0400a16a39761875e6c9cb9e9c..861712b78bcec63aa1302351df9d51c559fd6be5 100644
(file)
--- a/
common/cmd_bootm.c
+++ b/
common/cmd_bootm.c
@@
-854,6
+854,12
@@
static int image_info (ulong addr)
}
fit_print_contents (hdr);
+
+ if (!fit_all_image_check_hashes (hdr)) {
+ puts ("Bad hash in FIT image!\n");
+ return 1;
+ }
+
return 0;
#endif
default: