From: Michal Vasilek Date: Fri, 22 Jul 2022 17:55:53 +0000 (+0200) Subject: tools: mkimage: fix build with LibreSSL X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=2ecc354b8e461c7ecf0189601a8ed7b304596224;p=u-boot.git tools: mkimage: fix build with LibreSSL RSA_get0_* functions are not available in LibreSSL Signed-off-by: Michal Vasilek Reviewed-by: Simon Glass --- diff --git a/tools/sunxi_toc0.c b/tools/sunxi_toc0.c index bab5d17b7d..56200bd927 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;