wgtpkg-digsig: Add flag to accept/refuse a WGT without signature 23/15423/3
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 17 Jul 2018 09:14:06 +0000 (11:14 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 17 Jul 2018 12:49:18 +0000 (14:49 +0200)
commitd8d819bcde18c8b4b5dfbdf610a6fc5e04fa54bf
tree214ee1ec95aafe4855a25899886d2b33915fcb46
parentf97f8d24a1971117bbd4057ca0cd00776bcccb39
wgtpkg-digsig: Add flag to accept/refuse a WGT without signature

This flag allows with a single function to check the signature
and the case that a not signed widget is to be refused in the same
way that the signature is wrong.

The CMAKE boolean ALLOW_NO_SIGNATURE can be used to control
the default behavior at compile time. By default its value
is OFF meaning that install will refuse widgets without
signature.

Relates to Bug-AGL: SPEC-1590

Change-Id: I403109272759454696a1e5d9913879aaea7676e6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
CMakeLists.txt
src/wgtpkg-digsig.c
src/wgtpkg-digsig.h
src/wgtpkg-info.c
src/wgtpkg-install.c