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:
Jeremy Kerr 2012-08-13 13:47:44 +08:00
parent 36a14ed978
commit 8a55df5e96
4 changed files with 30 additions and 31 deletions

View file

@ -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();