[PATCH] tools: mkimage: fix build with recent LibreSSL
Jonathan Gray
jsg at jsg.id.au
Sun Aug 28 16:37:55 CEST 2022
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 <kettenis at openbsd.org>
> ---
> 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
>
>
More information about the U-Boot
mailing list