]> git.sur5r.net Git - u-boot/blobdiff - tools/mxsimage.c
binman: Add support for sections
[u-boot] / tools / mxsimage.c
index 32a7978cae09d697e93146d76f489ecf96e5bb9b..0bb5c6aa6b994b5189d2fc4f9a2e20bcc7004061 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Freescale i.MX23/i.MX28 SB image generator
  *
  * Copyright (C) 2012-2013 Marek Vasut <marex@denx.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifdef CONFIG_MXS
@@ -26,7 +25,8 @@
  * OpenSSL 1.1.0 and newer compatibility functions:
  * https://wiki.openssl.org/index.php/1.1_API_Changes
  */
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
+    (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
 static void *OPENSSL_zalloc(size_t num)
 {
        void *ret = OPENSSL_malloc(num);