image: always parse image regions
Rather than only calling image_find_regions when we want to sign or verify image, call it when the image is loaded. We'll want to use the parse data later, which will require it to be present on all instances of an image. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
parent
36a14ed978
commit
8a55df5e96
4 changed files with 30 additions and 31 deletions
2
sbsign.c
2
sbsign.c
|
@ -180,8 +180,6 @@ int main(int argc, char **argv)
|
|||
|
||||
talloc_steal(ctx, ctx->image);
|
||||
|
||||
image_find_regions(ctx->image);
|
||||
|
||||
ERR_load_crypto_strings();
|
||||
OpenSSL_add_all_digests();
|
||||
OpenSSL_add_all_ciphers();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue