git: 343da8f5e98f - stable/13 - libsecureboot: define SOPEN_MAX
Toomas Soome
tsoome at FreeBSD.org
Fri Sep 3 20:47:08 UTC 2021
The branch stable/13 has been updated by tsoome:
URL: https://cgit.FreeBSD.org/src/commit/?id=343da8f5e98ffac6a7c02fc5f8dd74290e267be0
commit 343da8f5e98ffac6a7c02fc5f8dd74290e267be0
Author: Toomas Soome <tsoome at FreeBSD.org>
AuthorDate: 2021-08-10 19:46:40 +0000
Commit: Toomas Soome <tsoome at FreeBSD.org>
CommitDate: 2021-09-03 20:45:16 +0000
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
---
lib/libsecureboot/verify_file.c | 3 +++
1 file changed, 3 insertions(+)
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;
More information about the dev-commits-src-all
mailing list