FIT: move handle->verify check to fit_verify_hash()
Preparation for the next step which will allow to open
images which are not part of a configuration.

This has one change inside: We used to iterate over all
subnodes of a image expecting all of them containing a hash,
so it could happen that we check multiple hashes if more exist
or that we falsely interpret some unrelated subnode as hash node.
With this patch we expect the hash in a subnode named "hash@1"
as required by the FIT image format description.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 174fae1 commit 12b161a5e0e36fb5b6b1a82df3c8ddb9bc0da78d
@Sascha Hauer Sascha Hauer authored on 29 Jan 2018
Showing 1 changed file
View
common/image-fit.c