From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EF9EC158046 for ; Sat, 12 Oct 2024 18:58:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 464452BC03F; Sat, 12 Oct 2024 18:57:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F06172BC03A for ; Sat, 12 Oct 2024 18:57:11 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 3/5] verify-sig.eclass: Error out on invalid method+function combos Date: Sat, 12 Oct 2024 20:52:04 +0200 Message-ID: <20241012185704.771370-4-mgorny@gentoo.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241012185704.771370-1-mgorny@gentoo.org> References: <20241012185704.771370-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: a15238da-411b-42b5-85d7-38a7823a6829 X-Archives-Hash: 45e31cd97117726f9412e24278e4e3c4 Signed-off-by: Michał Górny --- eclass/verify-sig.eclass | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index d601c7838a00..9886e3352db7 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -173,6 +173,9 @@ verify-sig_verify_detached() { -V -p "${key}" -m "${file}" -x "${sig}" || die "Signify signature verification failed" ;; + *) + die "${FUNCNAME} not supported with ${VERIFY_SIG_METHOD}" + ;; esac } @@ -234,6 +237,9 @@ verify-sig_verify_message() { signify -V -e -p "${key}" -m "${output_file}" -x "${file}" || die "Signify signature verification failed" ;; + *) + die "${FUNCNAME} not supported with ${VERIFY_SIG_METHOD}" + ;; esac } @@ -367,6 +373,9 @@ verify-sig_verify_signed_checksums() { -x "${checksum_file}" "${files[@]}" || die "Signify signature verification failed" ;; + *) + die "${FUNCNAME} not supported with ${VERIFY_SIG_METHOD}" + ;; esac } -- 2.47.0