summaryrefslogtreecommitdiffstats
path: root/src/wgtpkg-digsig.c
AgeCommit message (Collapse)AuthorFilesLines
2020-02-28Add feature of autosigning widgetsJosé Bollo1-0/+88
This adds the ability to automatically sign the widgets that are packaged. This is done by defining in the environment of the packaging process the variables WGTPKG_AUTOSIGN_X=key-filepath[:cert-filepath]... Where X is a number. If such variable exist, signatures are generated in the directory of the packaged or signed widget, one for each variable, replacing any existing one. Obviously, nothing is done if no such variable exist. The generated signature file depends on X. - 0 is for file author-signature.xml - X is for file signature-X.xml The program wgtpkg-pack automatically include that behaviour by default. An option allows to remove it. Bug-AGL: SPEC-2840 Change-Id: I00bc4a4d094f71b307e467f984f20d3d4cc3c7bd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-02-28Refactor ALLOW_NO_SIGNATURE compile flagJose Bollo1-6/+16
Fix a tiny bug and minor improvements Bug-AGL: SPEC-2840 Change-Id: I9b74a8fd604980615d5669219cb5de801de61163 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-01-08Update copyrightJosé Bollo1-1/+1
Change-Id: I1d68e07563d9f0f139d1bc8128e09a5da0a648af Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-07Update date in copyrightssandbox/scottrif29/scottdocsJosé Bollo1-1/+1
Change-Id: Ie2ff321f78c59913373e2ffb2820297fd423d6f4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-07-17wgtpkg-digsig: Add flag to accept/refuse a WGT without signatureJosé Bollo1-1/+5
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>
2018-07-17wgtpkg-digsig: Fix digital signature checkJosé Bollo1-1/+1
The compute of the return code was wrong: it always returned 0 even in case of error. Installation of a widget with an error in its signature was possible due to this error. Bug-AGL: SPEC-1590 Change-Id: Ibefd74aafd6a00dea32e52d471460cbe08a380ab Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-28Update date of copyright noticesJosé Bollo1-1/+1
Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-03Adds 2017 to copyrightsJosé Bollo1-1/+1
Change-Id: I3fcd64a038c6c5bca3d70186e2e68604aa392ed4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-28update dates of headersJosé Bollo1-1/+1
Change-Id: Ie82326a91ff61f079421239ffa83428f552194ab Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-16cmake: improves error detectionJosé Bollo1-2/+3
Add detection of problem of cast. The problems are corrected in the patch. Change-Id: I8dc1e987531790860e390dea53ddf49d52339cb2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2015-12-29wgtpkg: spliting of headersJosé Bollo1-1/+5
Change-Id: I8ac6a16c936b73c6ce74ee41ae9c5a2ad9d042ee
2015-12-17Bug fix and authoringJosé Bollo1-0/+2
Change-Id: I431915ac83727ab2cd27de37ace5015effcc7746 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2015-12-15work in progressJosé Bollo1-1/+0
Change-Id: Ifa4371f99968a56e980396f7009ab5030b831ebb
2015-12-13work in progressJosé Bollo1-22/+22
Change-Id: I197678515772982ab6dd2fd949fa2a54ca4f268f
2015-12-11more workJosé Bollo1-2/+2
Change-Id: I7eac968a21766be44068463bcab8aaaa3d12941f
2015-12-11work in progressJosé Bollo1-2/+21
Change-Id: I65416563a8dc54e877df03a304fe4cbd42ebb3da
2015-12-11don't change of directory anymoreJosé Bollo1-5/+29
Change-Id: I9f5906d3e053b3fa0f3000d07c4af3f666fe079a
2015-12-10added info retrievalJosé Bollo1-0/+1
Change-Id: I6f91b15e87308cf01db4ddafa3c2715c251f5fe5
2015-12-09refactoring sourcesJosé Bollo1-0/+358
Change-Id: Id6d52eee86b706958972e9b345ec0d4d1e488146 Signed-off-by: José Bollo <jose.bollo@iot.bzh>