From 223c8e3cdf2f8af03d1d6ea4b0ac2b11b4674125 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 25 Feb 2021 09:55:34 -0500 Subject: Make verify_sbat() more testable Signed-off-by: Peter Jones --- include/sbat.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') 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 -- cgit v1.2.3