diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2021-08-10 19:46:40 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2021-09-03 20:45:16 +0000 |
commit | 343da8f5e98ffac6a7c02fc5f8dd74290e267be0 (patch) | |
tree | eaa3af1400dae34c6ad6e40c80776a171614fc72 | |
parent | 8dc330532b9f3abfd44db5b71d40d87a3bc9ed8f (diff) | |
download | src-343da8f5e98ffac6a7c02fc5f8dd74290e267be0.tar.gz src-343da8f5e98ffac6a7c02fc5f8dd74290e267be0.zip |
libsecureboot: define SOPEN_MAX
With commit 97cbd5e722389a575e820c4e03f38053308f08ea, the SOPEN_MAX
was removed from stand.h.
We would need better mechanism there.
(cherry picked from commit ee6dc333e1a1af08afa3d14b83e963e4cf90b77b)
PR: 258211
-rw-r--r-- | lib/libsecureboot/verify_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libsecureboot/verify_file.c b/lib/libsecureboot/verify_file.c index 9773b02e5a1d..22f3f06b0eda 100644 --- a/lib/libsecureboot/verify_file.c +++ b/lib/libsecureboot/verify_file.c @@ -56,6 +56,9 @@ extern char *Skip; * We sometimes need to know if input is verified or not. * The extra slot is for tracking most recently opened. */ +#ifndef SOPEN_MAX +#define SOPEN_MAX 64 +#endif static int ve_status[SOPEN_MAX+1]; static int ve_status_state; struct verify_status; |