From nobody Tue Feb 18 18:41:26 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yy7dz2pldz5p19R; Tue, 18 Feb 2025 18:41:27 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yy7dy433Tz3HV1; Tue, 18 Feb 2025 18:41:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739904086; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PlyW/WOs2yjbVET+tjvo4C8OFobrOZMrUndFgCvC41c=; b=rHXZ1dq89vZiBvr6LfpO/LCeQ6f/H8aY9qW6KxmHPmbziWSMLcgruB9IMuFzwTKZ5in8V7 TEAQp7CdmBwZ3NsrVX8xcFjy9SyJBu3GcK9afPWkzSJp9uM65hPmJGCLWGSJ0N2dOf4VA9 ju+5NeoOkomrgmnaYSg2z8eV5PWEJc5TfSdzy5UueRCOHnU+4Vso1BBg/ipWfUOnP+hzlM PbDquifRXE294e7M8Ul7nDfZzDGwKJgRgKFQH8DfGJ8NdBp5Ecde6onJQ2iziBDHX43kLi mBGtQXLRgLmrOM5HPr/aQ+bNEoZmZQqYCmm0du1gdULpc7mm26cTE2U5XX/nkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739904086; a=rsa-sha256; cv=none; b=I4IhqfoYa2FF5ZtHequY7gzXw0QcdiwQEUCDZNQKH6ciQvPcZ/jVsiEOda9QUVAtE7agEi VN/kd0aUaUgQ9tJ4wZ33Pf4cJ6bnBPeru8bQGp6UZsPub/5hEykVDDtD9ZgA7AXVBudDzA Qre3DtoVucl3jFnlyFQEQbjHcyDoaUqpd80gWBSDhxkiM7HBfgezb3Ys604U+ZlUdNm6rl xieE2/Kk+D1GXL/lnyLphiOhHpGZ23myFL9tVrYR9LhLMMPs0L6StancF3BlThqxDh4iwb Zywd17hZIceLCkcoa4E1JhQzXslv8OIrT21hyAMPDHBEQNz92xZilIyMoRzCjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739904086; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PlyW/WOs2yjbVET+tjvo4C8OFobrOZMrUndFgCvC41c=; b=wtAeE1NnzqPIb4wB2rJLLAo6o9Ln+fxp2erH1iDLAEV2WS4QvVNB/Np6rH1IgxevuEF91f DPQM/Y7a+EqihlJswBJMpJnil5gEqzgTBEtmRx241bKWvGKw3uo51hAadD+LgLqG6b1yqX EYgn2cHcWEMgcKhWyt0wKtqlbFxLq3t85GYf/gskmKWZZ4TsQZAQfSt54YpmgwC67s9acv 1M+Yja5Bow7bgJ0f5ocDRmeoThVSwnrjb1hAy7tttldNuL8rN4JvEMBizUxNCruQIU/TMA 7Jno2C/SCR9a+JHVoXvrPvVCHfGR7enORkrnoJP5/GGWy5zPUbZDZruY6xZpEw== 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 4Yy7dy3P2fzXb0; Tue, 18 Feb 2025 18:41:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 51IIfQ2G028927; Tue, 18 Feb 2025 18:41:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51IIfQ5a028924; Tue, 18 Feb 2025 18:41:26 GMT (envelope-from git) Date: Tue, 18 Feb 2025 18:41:26 GMT Message-Id: <202502181841.51IIfQ5a028924@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 0ea2924f8126 - stable/14 - libsecureboot: Report failure for unsupported hash algorithm List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0ea2924f8126bb32ee704b071a87185140297ab3 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=0ea2924f8126bb32ee704b071a87185140297ab3 commit 0ea2924f8126bb32ee704b071a87185140297ab3 Author: Huwyler AuthorDate: 2025-01-17 14:55:15 +0000 Commit: Ed Maste CommitDate: 2025-02-18 18:41:07 +0000 libsecureboot: Report failure for unsupported hash algorithm Reviewed by: sjg Pull request: https://github.com/freebsd/freebsd-src/pull/1574 (cherry picked from commit caaeab697bf98bf96e2fa8cb4a1e22240511fbcc) --- lib/libsecureboot/openpgp/opgp_sig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libsecureboot/openpgp/opgp_sig.c b/lib/libsecureboot/openpgp/opgp_sig.c index a6aa787ee5c0..d69dbe4cfb2b 100644 --- a/lib/libsecureboot/openpgp/opgp_sig.c +++ b/lib/libsecureboot/openpgp/opgp_sig.c @@ -343,6 +343,7 @@ openpgp_verify(const char *filename, break; default: warnx("unsupported hash algorithm: %s", hname); + rc = -1; goto oops; } md->init(&mctx.vtable);