summaryrefslogtreecommitdiff
path: root/utility/include/gbb_utility.h
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2010-06-03 14:35:47 -0700
committerHung-Te Lin <hungte@chromium.org>2010-06-03 14:35:47 -0700
commit08dc5f381d2e144428bfc25b0881a435fd1ca155 (patch)
tree1c51c21c1e79400d1f79c6960dc1a849ead17dcf /utility/include/gbb_utility.h
parent96ee63bbf39670144b1c62d029d1c7bb44dc1f97 (diff)
downloadvboot-08dc5f381d2e144428bfc25b0881a435fd1ca155.tar.gz
Add 'recovery_key' in Google Binary Block (GBB) utility
Review URL: http://codereview.chromium.org/2553001
Diffstat (limited to 'utility/include/gbb_utility.h')
-rw-r--r--utility/include/gbb_utility.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utility/include/gbb_utility.h b/utility/include/gbb_utility.h
index 021eb80f..468cddf9 100644
--- a/utility/include/gbb_utility.h
+++ b/utility/include/gbb_utility.h
@@ -18,6 +18,7 @@ class GoogleBinaryBlockUtil {
PROP_HWID, // hardware id
PROP_ROOTKEY, // root key
PROP_BMPFV, // bitmap FV
+ PROP_RCVKEY, // recovery key
PROP_RANGE, // indicator of valid property range
};
@@ -48,9 +49,11 @@ class GoogleBinaryBlockUtil {
bool set_hwid(const char *hwid); // NOTE: hwid is NUL-terminated.
bool set_rootkey(const std::string &value);
bool set_bmpfv(const std::string &value);
+ bool set_recovery_key(const std::string &value);
std::string get_hwid() const { return get_property(PROP_HWID); }
std::string get_rootkey() const { return get_property(PROP_ROOTKEY); }
std::string get_bmpfv() const { return get_property(PROP_BMPFV); }
+ std::string get_recovery_key() const { return get_property(PROP_RCVKEY); }
private:
// clear all cached data and initialize to original state