]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: mkimage: fix build with recent LibreSSL
authorMark Kettenis <kettenis@openbsd.org>
Mon, 29 Aug 2022 11:34:01 +0000 (13:34 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 31 Aug 2022 16:21:47 +0000 (12:21 -0400)
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

index 56200bd9276d7117c6b7a904a61856b92669fa2f..7a8d74bb8e4941d538f692ba40b3dbf2083307f7 100644 (file)
@@ -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