git: ee6dc333e1a1 - main - libsecureboot: define SOPEN_MAX

Toomas Soome tsoome at FreeBSD.org
Wed Aug 11 22:07:01 UTC 2021


The branch main has been updated by tsoome:

URL: https://cgit.FreeBSD.org/src/commit/?id=ee6dc333e1a1af08afa3d14b83e963e4cf90b77b

commit ee6dc333e1a1af08afa3d14b83e963e4cf90b77b
Author:     Toomas Soome <tsoome at FreeBSD.org>
AuthorDate: 2021-08-10 19:46:40 +0000
Commit:     Toomas Soome <tsoome at FreeBSD.org>
CommitDate: 2021-08-10 19:46:40 +0000

    libsecureboot: define SOPEN_MAX
    
    With commit 97cbd5e722389a575e820c4e03f38053308f08ea, the SOPEN_MAX
    was removed from stand.h.
    
    We would need better mechanism there.
---
 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