]> git.baikalelectronics.ru Git - uboot.git/commit
tools: mkimage: set OPENSSL_API_COMPAT
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 6 May 2022 11:28:52 +0000 (13:28 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 7 May 2022 21:17:25 +0000 (23:17 +0200)
commit410a55b3268f208042e0b34f4a715a732ff6a875
tree671db0d6c6e455146a1051a5a8189f43c82799ad
parent48deef7229320826228e80584c8591d4b116dddb
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 <openssl/bn.h>.

Fixes: b50a87b59c19 ("tools: mkimage: Add Allwinner TOC0 support")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
tools/sunxi_toc0.c