From nobody Mon Jan 20 18:59:43 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 4YcKQR6jF0z5kmrQ; Mon, 20 Jan 2025 18:59:43 +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 4YcKQR5xqlz3qbm; Mon, 20 Jan 2025 18:59:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737399583; 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=5TE0HfQnesz4Dzf33eKlKBxBUU0X5+Ou7EbGiQ6i8D0=; b=D2PeYIB1ZMm6vB+0YfsvBzus7NVaCTYWhvppb0EewfBlwA1fbMGFppsMWR+iK3OZizZVeZ gJxIRVX5vlHrY5kdTRgI1lAlQ4aks534Tf5n5/4bs9O49yYRZG2a81oeP+3w3iSJQUnS4R nJey3L+BTmg7txErXyas/e6cmBp0q85jI9aKCQ1Ps78RPLJw64Q9D/9KM/hyMeJgWK/Mrc 71vbMoi4hDkcwQr5ZjIQctpiuoLU4K76O874jAQoA342PGcJ3b68/2e7EbA7qhLgNceJdA WkEH+lerKThvf5bzyb0WTSDv4xiYJny8ieD1jHqYcGpeEPuroE7bLDwnZKp+xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737399583; 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=5TE0HfQnesz4Dzf33eKlKBxBUU0X5+Ou7EbGiQ6i8D0=; b=Hsv2O+ECIZYNNNd45tUEWyFgAPGzyRKA2v7beBXvItJ+oGLKsmPjNAceynXcqNLfAhbVB1 CBm3VXNhKed3dCVfmFu43A1MYPPQ5z0rHnuW8diVVpw+8TiCb3Z+bGknM0OOAEQnZJ3rDD 9cWpeOjU1lkQIuhiDbiV9ILjB/5tv544dgac9dOoPhDTnFIfJSXQH17p4ZGeoWpQnwAN8w 8PWZqMRMixv9c1+tcAJPi0xj1ZboKt5OMoMiI2EHr1e34iBe2h4UwUt2WXvF0zFtS5AQtv wR5bdiBTDSosInE4kndkaoGlyaWY83SLIhllBg1tcY3adeuHyhUy3NjuBEYjwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737399583; a=rsa-sha256; cv=none; b=bd47PqwL1QS2qXormzWJhrTSeRRwNIant0LkdyWZBBYPpdd0ueU+X8QzCAGSNgMP6SThzx +SyFUSYjzkWnsi3ger4QyMs3/NrZyR5wdHFRJ+Ue0CjwGdCDszTHYEq/6kOZNxy+MLR3XL Dfu4ROv1cWn+NbKWMBW6FaqSVNhmwwWPZgxTqZtlkT/ZIIYcCMb68fzXLs6O4Y6KUElJdP HTgJS5ucpljvteJLdD9I3LCMFRIPekcR9rmwsln/By+14ejsUdPSd51qd+JktJx2zM22nM vDpgm5PnaB1w2MtDXa2GRuyigtE/DV3nbSf+xDqrUwhMlGt9oUzUuPJwGxhTWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YcKQR5XtGzYqP; Mon, 20 Jan 2025 18:59:43 +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 50KIxhJE093611; Mon, 20 Jan 2025 18:59:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50KIxh3v093608; Mon, 20 Jan 2025 18:59:43 GMT (envelope-from git) Date: Mon, 20 Jan 2025 18:59:43 GMT Message-Id: <202501201859.50KIxh3v093608@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: caaeab697bf9 - main - 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/main X-Git-Reftype: branch X-Git-Commit: caaeab697bf98bf96e2fa8cb4a1e22240511fbcc Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=caaeab697bf98bf96e2fa8cb4a1e22240511fbcc commit caaeab697bf98bf96e2fa8cb4a1e22240511fbcc Author: Huwyler AuthorDate: 2025-01-17 14:55:15 +0000 Commit: Ed Maste CommitDate: 2025-01-20 18:59:20 +0000 libsecureboot: Report failure for unsupported hash algorithm Reviewed by: sjg Pull request: https://github.com/freebsd/freebsd-src/pull/1574 --- 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 b99a1be459c1..73c482e4c28d 100644 --- a/lib/libsecureboot/openpgp/opgp_sig.c +++ b/lib/libsecureboot/openpgp/opgp_sig.c @@ -341,6 +341,7 @@ openpgp_verify(const char *filename, break; default: warnx("unsupported hash algorithm: %s", hname); + rc = -1; goto oops; } md->init(&mctx.vtable);