From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 29 Jul 2025 17:35:14 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ugmME-004y4b-09 for lore@lore.pengutronix.de; Tue, 29 Jul 2025 17:35:14 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ugmMC-0008Uz-Jh for lore@pengutronix.de; Tue, 29 Jul 2025 17:35:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=miHlZL6HFswbM2CSEMhb9YbodTpL9nQ8JCWJVutZ0Og=; b=aeTf+4nRsaZdm11SDFkl3MR6Yw 5/8WrIItxXfEYmaX9DdXUG35nX5XG0p4ZoPhwz06PoT4YN03pRQx+QvUkgdG/6NxlQShz2XfDJfHu fiUdq2+goECyv0UcAcDr6bsAEYk0gwjFQUF9L9nj+mVZrm+gNeoRIMkvk/DFppQTRVPyHTRA4GM+j DHsILz83h0E9gDGMK8sjcscz6ApzX7UqFu6nOfDJsFCnN1rJjY0T2wzo+e3C1J1zBgRaLEoecPHPG +TU+eZRhpCaRhyfKt3ihHwO9PMKuevzOlF9B4sZ1QuNuYP7RO21wSf2/otkDKfwUojj1ETyX4WGR7 sX1x996w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ugmLY-0000000H8z2-1X3j; Tue, 29 Jul 2025 15:34:32 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ugmLW-0000000H8vs-0lHF for barebox@lists.infradead.org; Tue, 29 Jul 2025 15:34:31 +0000 Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ugmLT-0007q6-NI; Tue, 29 Jul 2025 17:34:27 +0200 From: Marco Felsch Date: Tue, 29 Jul 2025 17:34:31 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250729-v2024-05-0-topic-fit-overlay-v4-6-af3ad99acde2@pengutronix.de> References: <20250729-v2024-05-0-topic-fit-overlay-v4-0-af3ad99acde2@pengutronix.de> In-Reply-To: <20250729-v2024-05-0-topic-fit-overlay-v4-0-af3ad99acde2@pengutronix.de> To: Sascha Hauer , BAREBOX Cc: Marco Felsch X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250729_083430_225593_7DFC4060 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v4 06/11] FIT: make fit_config_verify_signature public X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) The upcoming FIT overlay support requires this helper, so make it public available. Signed-off-by: Marco Felsch --- common/image-fit.c | 2 +- include/image-fit.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/image-fit.c b/common/image-fit.c index 0fc3b2e4aa7217a47710ef613426456420e81324..0067f46e60bc954b418aef3398e2c10856b41c02 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -694,7 +694,7 @@ int fit_open_image(struct fit_handle *handle, void *configuration, return 0; } -static int fit_config_verify_signature(struct fit_handle *handle, struct device_node *conf_node) +int fit_config_verify_signature(struct fit_handle *handle, struct device_node *conf_node) { struct device_node *sig_node; int ret = -EINVAL; diff --git a/include/image-fit.h b/include/image-fit.h index 416f1f2c1896949d2bcb7ab1a31f1aa6b5682edf..f8321aa87e11fcea642593e790a37df72a2e93b1 100644 --- a/include/image-fit.h +++ b/include/image-fit.h @@ -37,6 +37,7 @@ int fit_open_image(struct fit_handle *handle, void *configuration, int fit_get_image_address(struct fit_handle *handle, void *configuration, const char *name, const char *property, unsigned long *address); +int fit_config_verify_signature(struct fit_handle *handle, struct device_node *conf_node); void fit_close(struct fit_handle *handle); -- 2.39.5