]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
tools: avoid OpenSSL deprecation warnings
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 18 Dec 2021 10:25:12 +0000 (11:25 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 26 Dec 2021 05:57:20 +0000 (06:57 +0100)
Our Gitlab CI buildsystem is set up to treat warnings as errors.
With OpenSSL 3.0 a lot of deprecation warnings occur.

With the patch compatibility with OpenSSL 1.1.1 is declared.
In the long run we should upgrade our code to use the current API.

A -Wdiscarded-qualifiers warning is muted by casting.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/aes/aes-encrypt.c
lib/ecdsa/ecdsa-libcrypto.c
lib/rsa/rsa-sign.c
tools/kwbimage.c

index a6d1720f3031514929a3556ae9f99288fdadc16f..e74e35eaa28cf29b6e4e5145e609ef36d0dace1f 100644 (file)
@@ -2,6 +2,9 @@
 /*
  * Copyright (c) 2019,Softathome
  */
+
+#define OPENSSL_API_COMPAT 0x10101000L
+
 #include "mkimage.h"
 #include <stdio.h>
 #include <string.h>
index 1757a145623183ae458ddf922458ee623186781e..ae6dfa0ba97fdb1db8b6e844ed381a0f2bb1aa0b 100644 (file)
@@ -18,6 +18,8 @@
  * Copyright (c) 2020,2021, Alexandru Gagniuc <mr.nuke.me@gmail.com>
  */
 
+#define OPENSSL_API_COMPAT 0x10101000L
+
 #include <u-boot/ecdsa.h>
 #include <u-boot/fdt-libcrypto.h>
 #include <openssl/ssl.h>
index 0579e5294ee6403e7669264ad66b007a056e9f45..44f21416ce71e475fdc63a0089a9c8079f6531e3 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright (c) 2013, Google Inc.
  */
 
+#define OPENSSL_API_COMPAT 0x10101000L
+
 #include "mkimage.h"
 #include <stdlib.h>
 #include <stdio.h>
index 875f636c7a4f4766109d7411f7bfc2937e1772f8..da8bfe0518cb7ea742a0fe52123fe060c8eab593 100644 (file)
@@ -8,6 +8,8 @@
  * <thomas.petazzoni@free-electrons.com>
  */
 
+#define OPENSSL_API_COMPAT 0x10101000L
+
 #include "imagetool.h"
 #include <limits.h>
 #include <image.h>