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 BB0DCECAAD5 for ; Sun, 28 Aug 2022 14:38:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DC7BB840D2; Sun, 28 Aug 2022 16:38:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jsg.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 7E6E8840E4; Sun, 28 Aug 2022 16:38:05 +0200 (CEST) Received: from lechuck.jsg.id.au (jsg.id.au [193.114.144.202]) (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 CB25183FCA for ; Sun, 28 Aug 2022 16:38:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jsg.id.au Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jsg@jsg.id.au Received: from largo.jsg.id.au (largo.jsg.id.au [192.168.1.43]) by lechuck.jsg.id.au (OpenSMTPD) with ESMTPS id bfd5a54c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 29 Aug 2022 00:37:55 +1000 (AEST) Received: from localhost (largo.jsg.id.au [local]) by largo.jsg.id.au (OpenSMTPD) with ESMTPA id 840ca90f; Mon, 29 Aug 2022 00:37:55 +1000 (AEST) Date: Mon, 29 Aug 2022 00:37:55 +1000 From: Jonathan Gray To: Mark Kettenis Cc: u-boot@lists.denx.de, Jagan Teki , Andre Przywara , Simon Glass , Michal Vasilek Subject: Re: [PATCH] tools: mkimage: fix build with recent LibreSSL Message-ID: References: <20220827172344.69560-1-kettenis@openbsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220827172344.69560-1-kettenis@openbsd.org> 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 On Sat, Aug 27, 2022 at 07:23:44PM +0200, Mark Kettenis wrote: > 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. part of 3.5.0 / 0x3050000fL as well https://lists.denx.de/pipermail/u-boot/2022-July/489768.html https://marc.info/?l=libressl&m=164572407401570&w=2 > > 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 > >