You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/06/20 17:42:19 UTC
[mynewt-artifact] 07/12: newt: Allow mfgimages to be signed
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-artifact.git
commit 40452e878381db8cf381dcd742a8d38259d56efa
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Thu Jan 10 14:58:08 2019 -0800
newt: Allow mfgimages to be signed
Mfgimages are signed with the same keys as their constituent images.
---
manifest/mfg_manifest.go | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/manifest/mfg_manifest.go b/manifest/mfg_manifest.go
index bb27adc..b7f00e8 100644
--- a/manifest/mfg_manifest.go
+++ b/manifest/mfg_manifest.go
@@ -31,6 +31,11 @@ type MfgManifestMeta struct {
// XXX: refhash
}
+type MfgManifestSig struct {
+ Key string `json:"key"`
+ Sig string `json:"sig"`
+}
+
type MfgManifest struct {
Name string `json:"name"`
BuildTime string `json:"build_time"`
@@ -40,6 +45,7 @@ type MfgManifest struct {
Device int `json:"device"`
BinPath string `json:"bin_path"`
Bsp string `json:"bsp"`
+ Signatures []MfgManifestSig `json:"signatures,omitempty"`
FlashAreas []flash.FlashArea `json:"flash_map"`
Targets []MfgManifestTarget `json:"targets"`