summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAneesh Bansal <aneesh.bansal@freescale.com>2015-12-08 14:14:12 +0530
committerYork Sun <york.sun@nxp.com>2016-01-25 08:24:16 -0800
commitbc71f926e35be8af1a9491ea0332871881c7eda5 (patch)
treeee7e9db764ea87bd60996ac43376ad7ac5a73605 /include
parent81dfdee0dc6c6ca6bdf0c75e0903afefc950d512 (diff)
downloadu-boot-imx-bc71f926e35be8af1a9491ea0332871881c7eda5.zip
u-boot-imx-bc71f926e35be8af1a9491ea0332871881c7eda5.tar.gz
u-boot-imx-bc71f926e35be8af1a9491ea0332871881c7eda5.tar.bz2
SECURE BOOT: change prototype of fsl_secboot_validate function
The prototype and defination of function fsl_secboot_validate has been changed to support calling this function from another function within u-boot. Only two aruments needed: 1) header address - Mandatory 2) SHA256 string - optional Signed-off-by: Saksham Jain <saksham@freescale.com> Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com> Acked-by: Ruchika Gupta <ruchika.gupta@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/fsl_validate.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/fsl_validate.h b/include/fsl_validate.h
index a62dc74..bda802f 100644
--- a/include/fsl_validate.h
+++ b/include/fsl_validate.h
@@ -193,11 +193,10 @@ struct fsl_secboot_img_priv {
*/
struct fsl_secboot_sg_table sgtbl[MAX_SG_ENTRIES]; /* SG table */
- u32 ehdrloc; /* ESBC client location */
+ ulong ehdrloc; /* ESBC client location */
};
-int fsl_secboot_validate(cmd_tbl_t *cmdtp, int flag, int argc,
- char * const argv[]);
+int fsl_secboot_validate(ulong haddr, char *arg_hash_str);
int fsl_secboot_blob_encap(cmd_tbl_t *cmdtp, int flag, int argc,
char * const argv[]);
int fsl_secboot_blob_decap(cmd_tbl_t *cmdtp, int flag, int argc,