Skip to content
Snippets Groups Projects
Commit a4f24345 authored by Bartlomiej Sieka's avatar Bartlomiej Sieka Committed by Wolfgang Denk
Browse files

FIT: make iminfo check hashes of all images in FIT, return 1 on failed check

parent 919f550d
No related branches found
No related tags found
No related merge requests found
...@@ -854,6 +854,12 @@ static int image_info (ulong addr) ...@@ -854,6 +854,12 @@ static int image_info (ulong addr)
} }
fit_print_contents (hdr); fit_print_contents (hdr);
if (!fit_all_image_check_hashes (hdr)) {
puts ("Bad hash in FIT image!\n");
return 1;
}
return 0; return 0;
#endif #endif
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment