diff options
| author | Peter Jones <pjones@redhat.com> | 2025-02-18 15:10:22 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-02-24 15:26:20 -0500 |
| commit | b216543d691050d6cdd37c3500571cf67882f1bc (patch) | |
| tree | 7ea0f8c843de09c4117544e33f49ec1ba4a13229 | |
| parent | f0958baa7cc0fcce0de09323d89dda7bf23afec3 (diff) | |
| download | efi-boot-shim-b216543d691050d6cdd37c3500571cf67882f1bc.tar.gz efi-boot-shim-b216543d691050d6cdd37c3500571cf67882f1bc.zip | |
Move mok state variable data flag definitions to the header.
Previously the mok mirror state flags were only used in the mok
mirroring code. But there are other consumers of that data, namely our
variable test cases, and it's useful for them to be able to check the
flags.
Signed-off-by: Peter Jones <pjones@redhat.com>
| -rw-r--r-- | include/mok.h | 7 | ||||
| -rw-r--r-- | mok.c | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/mok.h b/include/mok.h index e6921e09..1b44217c 100644 --- a/include/mok.h +++ b/include/mok.h @@ -19,6 +19,13 @@ struct mok_state_variable; typedef vendor_addend_category_t (vendor_addend_categorizer_t)(struct mok_state_variable *); typedef UINTN (mok_variable_format_helper_t)(UINT8 *buf, size_t sz, struct mok_state_variable *); +#define MOK_MIRROR_KEYDB 0x01 +#define MOK_MIRROR_DELETE_FIRST 0x02 +#define MOK_VARIABLE_MEASURE 0x04 +#define MOK_VARIABLE_LOG 0x08 +#define MOK_VARIABLE_INVERSE 0x10 +#define MOK_VARIABLE_CONFIG_ONLY 0x20 + /* * MoK variables that need to have their storage validated. * @@ -144,13 +144,6 @@ categorize_deauthorized(struct mok_state_variable *v) return VENDOR_ADDEND_DB; } -#define MOK_MIRROR_KEYDB 0x01 -#define MOK_MIRROR_DELETE_FIRST 0x02 -#define MOK_VARIABLE_MEASURE 0x04 -#define MOK_VARIABLE_LOG 0x08 -#define MOK_VARIABLE_INVERSE 0x10 -#define MOK_VARIABLE_CONFIG_ONLY 0x20 - struct mok_state_variable mok_state_variable_data[] = { {.name = L"MokList", .name8 = "MokList", |
