diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2022-08-29 13:34:01 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-31 12:21:47 -0400 |
commit | 1a4af2d9507b54ccf91d5616d5544915f695e64d (patch) | |
tree | 9ad0a27be278f11ab450ac0c277aeab6edc18329 | |
parent | 5acfdfbd43bfc4964dade2f8b085b26dc24a9dcd (diff) | |
download | u-boot-1a4af2d9507b54ccf91d5616d5544915f695e64d.zip u-boot-1a4af2d9507b54ccf91d5616d5544915f695e64d.tar.gz u-boot-1a4af2d9507b54ccf91d5616d5544915f695e64d.tar.bz2 |
tools: mkimage: fix build with recent LibreSSL
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>
-rw-r--r-- | tools/sunxi_toc0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sunxi_toc0.c b/tools/sunxi_toc0.c index 56200bd..7a8d74b 100644 --- a/tools/sunxi_toc0.c +++ b/tools/sunxi_toc0.c @@ -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 |