From owner-dev-commits-src-branches@freebsd.org  Fri Sep  3 20:47:08 2021
Return-Path: <owner-dev-commits-src-branches@freebsd.org>
Delivered-To: dev-commits-src-branches@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4046A67D708;
 Fri,  3 Sep 2021 20:47:08 +0000 (UTC) (envelope-from git@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
 [IPv6:2610:1c1:1:606c::19:3])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (4096 bits) client-digest SHA256)
 (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4H1VGN1MSVz3lhJ;
 Fri,  3 Sep 2021 20:47:08 +0000 (UTC) (envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org
 [IPv6:2610:1c1:1:6068::e6a:5])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (Client did not present a certificate)
 by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0AC1D2A43;
 Fri,  3 Sep 2021 20:47:08 +0000 (UTC) (envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
 by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 183Kl7Rb083550;
 Fri, 3 Sep 2021 20:47:07 GMT (envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
 by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 183Kl7d6083549;
 Fri, 3 Sep 2021 20:47:07 GMT (envelope-from git)
Date: Fri, 3 Sep 2021 20:47:07 GMT
Message-Id: <202109032047.183Kl7d6083549@gitrepo.freebsd.org>
To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org,
 dev-commits-src-branches@FreeBSD.org
From: Toomas Soome <tsoome@FreeBSD.org>
Subject: git: 343da8f5e98f - stable/13 - libsecureboot: define SOPEN_MAX
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: tsoome
X-Git-Repository: src
X-Git-Refname: refs/heads/stable/13
X-Git-Reftype: branch
X-Git-Commit: 343da8f5e98ffac6a7c02fc5f8dd74290e267be0
Auto-Submitted: auto-generated
X-BeenThere: dev-commits-src-branches@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Commits to the stable branches of the FreeBSD src repository
 <dev-commits-src-branches.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/dev-commits-src-branches>, 
 <mailto:dev-commits-src-branches-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/dev-commits-src-branches/>
List-Post: <mailto:dev-commits-src-branches@freebsd.org>
List-Help: <mailto:dev-commits-src-branches-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/dev-commits-src-branches>, 
 <mailto:dev-commits-src-branches-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 03 Sep 2021 20:47:08 -0000

The branch stable/13 has been updated by tsoome:

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

commit 343da8f5e98ffac6a7c02fc5f8dd74290e267be0
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2021-08-10 19:46:40 +0000
Commit:     Toomas Soome <tsoome@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;