提交 8edecd31 编写于 作者: J John Keeping 提交者: Tom Rini

fit: Fix verification of images with external data

The "-E" option to mkimage generates a FIT with external data using the
data-size and data-offset properties which must both be ignored when
verifying a signature.

Add "data-offset" to the list of excluded properties for signature
verification; since the line is now too long, re-format the list to
one-per-line and make it static since the data is constant.
Signed-off-by: NJohn Keeping <john@metanate.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 66217225
......@@ -245,7 +245,13 @@ static int fit_config_check_sig(const void *fit, int noffset,
int required_keynode, int conf_noffset,
char **err_msgp)
{
char * const exc_prop[] = {"data", "data-size", "data-position"};
static char * const exc_prop[] = {
"data",
"data-size",
"data-position",
"data-offset"
};
const char *prop, *end, *name;
struct image_sign_info info;
const uint32_t *strings;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册