X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-digsig.h;h=5b89100a35d5cfb41ae3316e2ca2fe6e10b2a9be;hb=7553044c59814c33763bb4b1c34664dceed68735;hp=99c5a56cb90d01223ccbf2d826d07b48172c000b;hpb=189415eece11c543e1ccb95dff32695ddc383565;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-digsig.h b/src/wgtpkg-digsig.h index 99c5a56..5b89100 100644 --- a/src/wgtpkg-digsig.h +++ b/src/wgtpkg-digsig.h @@ -1,5 +1,5 @@ /* - Copyright 2015 IoT.bzh + Copyright (C) 2015-2019 IoT.bzh author: José Bollo @@ -21,8 +21,11 @@ extern int verify_digsig(struct filedesc *fdesc); /* create a digital signature */ -extern int create_digsig(int index, const char *key, const char **certs); +extern int create_digsig(unsigned int index, const char *key, const char **certs); /* check the signatures of the current directory */ -extern int check_all_signatures(); +extern int check_all_signatures(int allow_none); +#if !defined(DEFAULT_ALLOW_NO_SIGNATURE) +#define DEFAULT_ALLOW_NO_SIGNATURE 0 +#endif