summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-02-25 09:55:34 -0500
committerPeter Jones <pjones@redhat.com>2021-02-25 10:15:14 -0500
commit223c8e3cdf2f8af03d1d6ea4b0ac2b11b4674125 (patch)
treeb611d976f97dc100575d85d012cea9d7de3cb535 /include
parent16f94b261f5b95b4cf5787b27312775cbcd60cc8 (diff)
downloadefi-boot-shim-223c8e3cdf2f8af03d1d6ea4b0ac2b11b4674125.tar.gz
efi-boot-shim-223c8e3cdf2f8af03d1d6ea4b0ac2b11b4674125.zip
Make verify_sbat() more testable
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbat.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/sbat.h b/include/sbat.h
index c3e96179..69f4e78a 100644
--- a/include/sbat.h
+++ b/include/sbat.h
@@ -21,9 +21,6 @@ extern list_t sbat_var;
#define SBAT_VAR_COLUMNS ((sizeof (struct sbat_var_entry) - sizeof(list_t)) / sizeof(CHAR8 *))
#define SBAT_VAR_REQUIRED_COLUMNS (SBAT_VAR_COLUMNS - 1)
-#ifdef SHIM_UNIT_TEST
-EFI_STATUS parse_sbat_var_data(list_t *entries, UINT8 *data, UINTN datasize);
-#endif
EFI_STATUS parse_sbat_var(list_t *entries);
void cleanup_sbat_var(list_t *entries);
@@ -44,5 +41,10 @@ void cleanup_sbat_section_entries(size_t n, struct sbat_section_entry **entries)
EFI_STATUS verify_sbat(size_t n, struct sbat_section_entry **entries);
+#ifdef SHIM_UNIT_TEST
+EFI_STATUS parse_sbat_var_data(list_t *entries, UINT8 *data, UINTN datasize);
+EFI_STATUS verify_sbat_helper(list_t *sbat_var, size_t n,
+ struct sbat_section_entry **entries);
+#endif /* !SHIM_UNIT_TEST */
#endif /* !SBAT_H_ */
// vim:fenc=utf-8:tw=75:noet