]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: mkimage: fix build with LibreSSL
authorMichal Vasilek <michal.vasilek@nic.cz>
Fri, 22 Jul 2022 17:55:53 +0000 (19:55 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 4 Aug 2022 19:32:20 +0000 (15:32 -0400)
RSA_get0_* functions are not available in LibreSSL

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/sunxi_toc0.c

index bab5d17b7de19e877074ed828e626b2a08468858..56200bd9276d7117c6b7a904a61856b92669fa2f 100644 (file)
 #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;