From 3a8b919932fdf07b6fefc1e76abb086984909be9 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 18 Dec 2021 11:25:12 +0100 Subject: tools: avoid OpenSSL deprecation warnings 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 --- lib/aes/aes-encrypt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/aes') diff --git a/lib/aes/aes-encrypt.c b/lib/aes/aes-encrypt.c index a6d1720f30..e74e35eaa2 100644 --- a/lib/aes/aes-encrypt.c +++ b/lib/aes/aes-encrypt.c @@ -2,6 +2,9 @@ /* * Copyright (c) 2019,Softathome */ + +#define OPENSSL_API_COMPAT 0x10101000L + #include "mkimage.h" #include #include -- cgit v1.2.3