mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-31 19:17:12 +00:00
185541f50f
If you would like to compile the newest version of U-boot together with the stable
OpenWrt version, which does not have LibreSSL >= 3.5, which was updated
in the master branch by commit 5451b03b7c
("tools/libressl: bump to v3.5.3"), then you need these two patches to
fix it. They are backported from U-boot repository.
This should be backported to stable OpenWrt versions.
Reported-by: Michal Vasilek <michal.vasilek@nic.cz>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
From 16b94d211b18ae0204c4f850fdf23573b19170ec Mon Sep 17 00:00:00 2001
|
|
From: Mark Kettenis <kettenis@openbsd.org>
|
|
Date: Mon, 29 Aug 2022 13:34:01 +0200
|
|
Subject: [PATCH 2/2] tools: mkimage: fix build with recent LibreSSL
|
|
|
|
LibreSSL 3.5.0 and later (also shipped as part of OpenBSD 7.1 and
|
|
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 <kettenis@openbsd.org>
|
|
Reviewed-by: Jonathan Gray <jsg@jsg.id.au>
|
|
---
|
|
tools/sunxi_toc0.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- 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 < 0x3050000fL
|
|
#define RSA_get0_n(key) (key)->n
|
|
#define RSA_get0_e(key) (key)->e
|
|
#define RSA_get0_d(key) (key)->d
|