aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Vasilek <michal.vasilek@nic.cz>2022-07-22 19:55:53 +0200
committerTom Rini <trini@konsulko.com>2022-08-04 15:32:20 -0400
commit2ecc354b8e461c7ecf0189601a8ed7b304596224 (patch)
treee7794906298b51619dbfe1916653fab07ee8319e
parent124b21e7bd3d0ad5258c7cf84540301bff27012a (diff)
downloadu-boot-2ecc354b8e461c7ecf0189601a8ed7b304596224.zip
u-boot-2ecc354b8e461c7ecf0189601a8ed7b304596224.tar.gz
u-boot-2ecc354b8e461c7ecf0189601a8ed7b304596224.tar.bz2
tools: mkimage: fix build with LibreSSL
RSA_get0_* functions are not available in LibreSSL Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/sunxi_toc0.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/sunxi_toc0.c b/tools/sunxi_toc0.c
index bab5d17..56200bd 100644
--- a/tools/sunxi_toc0.c
+++ b/tools/sunxi_toc0.c
@@ -34,6 +34,12 @@
#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)
+#define RSA_get0_n(key) (key)->n
+#define RSA_get0_e(key) (key)->e
+#define RSA_get0_d(key) (key)->d
+#endif
+
struct __packed toc0_key_item {
__le32 vendor_id;
__le32 key0_n_len;