diff options
Diffstat (limited to 'drivers/auth/auth_mod.c')
-rw-r--r-- | drivers/auth/auth_mod.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/auth/auth_mod.c b/drivers/auth/auth_mod.c index 97e122032..d66e5dd1d 100644 --- a/drivers/auth/auth_mod.c +++ b/drivers/auth/auth_mod.c @@ -30,6 +30,10 @@ #pragma weak plat_set_nv_ctr2 +/* Pointer to CoT */ +extern const auth_img_desc_t **const cot_desc_ptr; +extern unsigned int auth_img_flags[MAX_NUMBER_IDS]; + static int cmp_auth_param_type_desc(const auth_param_type_desc_t *a, const auth_param_type_desc_t *b) { @@ -300,7 +304,7 @@ int auth_mod_get_parent_id(unsigned int img_id, unsigned int *parent_id) assert(parent_id != NULL); /* Get the image descriptor */ - img_desc = &cot_desc_ptr[img_id]; + img_desc = cot_desc_ptr[img_id]; /* Check if the image has no parent (ROT) */ if (img_desc->parent == NULL) { @@ -349,7 +353,7 @@ int auth_mod_verify_img(unsigned int img_id, int rc, i; /* Get the image descriptor from the chain of trust */ - img_desc = &cot_desc_ptr[img_id]; + img_desc = cot_desc_ptr[img_id]; /* Ask the parser to check the image integrity */ rc = img_parser_check_integrity(img_desc->img_type, img_ptr, img_len); |