Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B48A2ECAAD1 for ; Sat, 27 Aug 2022 17:24:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E2F7684564; Sat, 27 Aug 2022 19:24:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=kpnmail.nl header.i=@kpnmail.nl header.b="Z8j6nIBn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 78FD78457E; Sat, 27 Aug 2022 19:23:59 +0200 (CEST) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C36C684001 for ; Sat, 27 Aug 2022 19:23:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kettenis@openbsd.org X-KPN-MessageId: c8f9967a-262c-11ed-888a-005056992ed3 Received: from smtp.kpnmail.nl (unknown [10.31.155.6]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id c8f9967a-262c-11ed-888a-005056992ed3; Sat, 27 Aug 2022 19:22:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kpnmail.nl; s=kpnmail01; h=mime-version:message-id:date:subject:to:from; bh=13thMjIW4bwMTVff6W75DYCtPl3GVwS6BZOG8WlwWik=; b=Z8j6nIBnlvb5hF0v4aMdqOIKxNf36LOdbzo6+W9tkJ7SJg0iynFaRw3i81HE2dXRJCDK4r0KnyCBx i8wOvE+nro7eTQI/luF3r2OyY8S2sTPKub19mMAkIlFSKoEPuAN+rzha9web4HAO7fHBUh3IQL8g9Z tWB1ssyD6Ex45fOY= X-KPN-MID: 33|yaIHPx9Z/uIPskNVSDLxzkhpJ1FHvKLfNz1gTdnXNuxbZDAK2qebFrUNC1ZfA0+ W/mkiO8loYtks+0xQrtsYIM6onNRNrm/ixhFjYY81BdY= X-KPN-VerifiedSender: No X-CMASSUN: 33|Wc7YFW3BpssaYyhMctPbIziGBODqTc2ISCdEbOTIwVi8d5TwngilC4NBpbkBYEa A4wzxIYK3+B/7EOnea2Dy6g== X-Originating-IP: 80.61.163.207 Received: from copland.sibelius.xs4all.nl (80-61-163-207.fixed.kpn.net [80.61.163.207]) by smtp.xs4all.nl (Halon) with ESMTPSA id 0626aaa6-262d-11ed-ad28-00505699772e; Sat, 27 Aug 2022 19:23:54 +0200 (CEST) From: Mark Kettenis To: u-boot@lists.denx.de Cc: Jagan Teki , Andre Przywara , Simon Glass , Michal Vasilek , Mark Kettenis Subject: [PATCH] tools: mkimage: fix build with recent LibreSSL Date: Sat, 27 Aug 2022 19:23:44 +0200 Message-Id: <20220827172344.69560-1-kettenis@openbsd.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Recent versions of LibreSSL, such as those shipped as part of OpenBSD 7.1 and later have an opaque RSA object and do provide the RSA_get0_* functions that OpenSSL provides. Fixes: 2ecc354b8e46 ("tools: mkimage: fix build with LibreSSL") Signed-off-by: Mark Kettenis --- tools/sunxi_toc0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sunxi_toc0.c b/tools/sunxi_toc0.c index 56200bd927..eb5626411c 100644 --- a/tools/sunxi_toc0.c +++ b/tools/sunxi_toc0.c @@ -34,7 +34,7 @@ #define pr_warn(fmt, args...) fprintf(stderr, pr_fmt(fmt), "warning", ##args) #define pr_info(fmt, args...) fprintf(stderr, pr_fmt(fmt), "info", ##args) -#if defined(LIBRESSL_VERSION_NUMBER) +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3050100fL #define RSA_get0_n(key) (key)->n #define RSA_get0_e(key) (key)->e #define RSA_get0_d(key) (key)->d -- 2.37.2