From: Heinrich Schuchardt Date: Fri, 6 May 2022 11:28:52 +0000 (+0200) Subject: tools: mkimage: set OPENSSL_API_COMPAT X-Git-Tag: v2025.01-rc5-pxa1908~1412^2~4 X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20.RelPermalink%20%7D%7D?a=commitdiff_plain;h=e927e21c07483337ffb63b828d4ddb5e0db342b2;p=u-boot.git tools: mkimage: set OPENSSL_API_COMPAT Building with OpenSSL 3.0 produces warnings like: ../tools/sunxi_toc0.c:846:17: warning: ‘RSA_get0_d’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 846 | if (root_key && RSA_get0_d(root_key)) { | ^~ As OpenSSL 3.0 is not available in elder Linux distributions just silence the warning. Add missing #include . Fixes: e9e87ec47c75 ("tools: mkimage: Add Allwinner TOC0 support") Signed-off-by: Heinrich Schuchardt Tested-by: Andre Przywara --- diff --git a/tools/sunxi_toc0.c b/tools/sunxi_toc0.c index 58a6e7a0a1..bab5d17b7d 100644 --- a/tools/sunxi_toc0.c +++ b/tools/sunxi_toc0.c @@ -4,6 +4,8 @@ * (C) Copyright 2020-2021 Samuel Holland */ +#define OPENSSL_API_COMPAT 0x10101000L + #include #include #include @@ -11,6 +13,7 @@ #include #include +#include #include #include