CI: kernel: check if patch are refreshed for each target
[openwrt/openwrt.git] / package / boot / uboot-mvebu / patches / 0003-tools-mkimage-fix-build-with-recent-LibreSSL.patch
1 From 16b94d211b18ae0204c4f850fdf23573b19170ec Mon Sep 17 00:00:00 2001
2 From: Mark Kettenis <kettenis@openbsd.org>
3 Date: Mon, 29 Aug 2022 13:34:01 +0200
4 Subject: [PATCH 2/2] tools: mkimage: fix build with recent LibreSSL
5
6 LibreSSL 3.5.0 and later (also shipped as part of OpenBSD 7.1 and
7 and later) have an opaque RSA object and do provide the
8 RSA_get0_* functions that OpenSSL provides.
9
10 Fixes: 2ecc354b8e46 ("tools: mkimage: fix build with LibreSSL")
11 Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
12 Reviewed-by: Jonathan Gray <jsg@jsg.id.au>
13 ---
14 tools/sunxi_toc0.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/tools/sunxi_toc0.c
18 +++ b/tools/sunxi_toc0.c
19 @@ -34,7 +34,7 @@
20 #define pr_warn(fmt, args...) fprintf(stderr, pr_fmt(fmt), "warning", ##args)
21 #define pr_info(fmt, args...) fprintf(stderr, pr_fmt(fmt), "info", ##args)
22
23 -#if defined(LIBRESSL_VERSION_NUMBER)
24 +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3050000fL
25 #define RSA_get0_n(key) (key)->n
26 #define RSA_get0_e(key) (key)->e
27 #define RSA_get0_d(key) (key)->d