diff options
author | José Bollo <jose.bollo@iot.bzh> | 2020-02-27 17:12:55 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2020-02-28 12:39:07 +0100 |
commit | 956e7c57d15bde67d7392aab01a9c0fc6906bbd4 (patch) | |
tree | 57ab4679060160c510fc45f92e20f0e5df8fdc9c /src/wgtpkg-digsig.h | |
parent | c5d922d7085c980edad3764687e2488a1b0907d0 (diff) |
Add feature of autosigning widgets
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>
Diffstat (limited to 'src/wgtpkg-digsig.h')
-rw-r--r-- | src/wgtpkg-digsig.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wgtpkg-digsig.h b/src/wgtpkg-digsig.h index defcfa1..a1cc32d 100644 --- a/src/wgtpkg-digsig.h +++ b/src/wgtpkg-digsig.h @@ -26,3 +26,6 @@ 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(int allow_none); +/* create a digital signature(s) from environment data */ +extern int create_auto_digsig(); + |