Skip to content

Commit

Permalink
tools: avoid OpenSSL deprecation warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
xypron committed Dec 26, 2021
1 parent 88c4cbe commit 3a8b919
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/aes/aes-encrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
/*
* Copyright (c) 2019,Softathome
*/

#define OPENSSL_API_COMPAT 0x10101000L

#include "mkimage.h"
#include <stdio.h>
#include <string.h>
Expand Down
2 changes: 2 additions & 0 deletions lib/ecdsa/ecdsa-libcrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
* Copyright (c) 2020,2021, Alexandru Gagniuc <[email protected]>
*/

#define OPENSSL_API_COMPAT 0x10101000L

#include <u-boot/ecdsa.h>
#include <u-boot/fdt-libcrypto.h>
#include <openssl/ssl.h>
Expand Down
2 changes: 2 additions & 0 deletions lib/rsa/rsa-sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Copyright (c) 2013, Google Inc.
*/

#define OPENSSL_API_COMPAT 0x10101000L

#include "mkimage.h"
#include <stdlib.h>
#include <stdio.h>
Expand Down
2 changes: 2 additions & 0 deletions tools/kwbimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* <[email protected]>
*/

#define OPENSSL_API_COMPAT 0x10101000L

#include "imagetool.h"
#include <limits.h>
#include <image.h>
Expand Down

0 comments on commit 3a8b919

Please sign in to comment.