summaryrefslogtreecommitdiff
path: root/host/include
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2011-07-13 09:48:41 -0700
committerRandall Spangler <rspangler@chromium.org>2011-07-13 10:13:12 -0700
commita712e01ae783351e921031aab59ff1b7583d683d (patch)
tree81b255e45fd41e2ca5ef7405d19e044234500f07 /host/include
parentd70241f37d87bd7758fc6c5bbb7d5870098ecdfc (diff)
downloadvboot-a712e01ae783351e921031aab59ff1b7583d683d.tar.gz
Add support for flags in the firmware preamble.
The old (v2.0) parser is compatible with new (v2.1) structs. That is, this won't break existing firmware or vbutil_firmware. A new (v2.1) parser parsing an old (v2.0) struct will return 0 for the flags. This will be used to support the RO-normal code path in a subsequent CL. BUG=chromium-os:17304 TEST=added unit tests; make && make runtests Change-Id: I73bcd8acd3330b0d7d143061b5ef838e6d79cf1a Reviewed-on: http://gerrit.chromium.org/gerrit/4030 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'host/include')
-rw-r--r--host/include/host_common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/include/host_common.h b/host/include/host_common.h
index 007c9d91..5d206301 100644
--- a/host/include/host_common.h
+++ b/host/include/host_common.h
@@ -30,7 +30,8 @@ VbFirmwarePreambleHeader* CreateFirmwarePreamble(
uint64_t firmware_version,
const VbPublicKey* kernel_subkey,
const VbSignature* body_signature,
- const VbPrivateKey* signing_key);
+ const VbPrivateKey* signing_key,
+ uint32_t flags);
/* Creates a kernel preamble, signed with [signing_key].