diff options
Diffstat (limited to 'futility/updater.h')
-rw-r--r-- | futility/updater.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/futility/updater.h b/futility/updater.h index c83ebfc2..e11cc745 100644 --- a/futility/updater.h +++ b/futility/updater.h @@ -43,6 +43,7 @@ enum quirk_types { QUIRK_EVE_SMM_STORE, QUIRK_ALLOW_EMPTY_WLTAG, QUIRK_EC_PARTIAL_RECOVERY, + QUIRK_OVERRIDE_SIGNATURE_ID, QUIRK_MAX, }; @@ -124,6 +125,12 @@ enum updater_error_codes { extern const char * const updater_error_messages[]; /* + * Returns a valid root key from GBB header, or NULL on failure. + */ +const struct vb2_packed_key *get_rootkey( + const struct vb2_gbb_header *gbb); + +/* * The main updater to update system firmware using the configuration parameter. * Returns UPDATE_ERR_DONE if success, otherwise failure. */ @@ -168,6 +175,14 @@ int get_system_property(enum system_property_type property_type, */ const char * const updater_get_default_quirks(struct updater_config *cfg); +/* + * Overrides signature id if the device was shipped with known + * special rootkey. + */ +int quirk_override_signature_id(struct updater_config *cfg, + struct model_config *model, + const char **signature_id); + /* Functions from updater_archive.c */ /* |