From a712e01ae783351e921031aab59ff1b7583d683d Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 13 Jul 2011 09:48:41 -0700 Subject: 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 Tested-by: Randall Spangler --- host/include/host_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/include') 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]. -- cgit v1.2.1