Skip to content

Commit

Permalink
cert host tools: Stop complaining about deprecated OpenSSL functions
Browse files Browse the repository at this point in the history
OpenSSL 3.0 deprecated the OpenSSL's ENGINE API.  That is as may be, but
the kernel build host tools still use it.  Disable the warning about
deprecated declarations until somebody who cares fixes it.

Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
torvalds committed Jun 8, 2022
1 parent 34f4335 commit 6bfb56e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions certs/extract-cert.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
#include <openssl/err.h>
#include <openssl/engine.h>

/*
* OpenSSL 3.0 deprecates the OpenSSL's ENGINE API.
*
* Remove this if/when that API is no longer used
*/
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

#define PKEY_ID_PKCS7 2

static __attribute__((noreturn))
Expand Down
7 changes: 7 additions & 0 deletions scripts/sign-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
#include <openssl/err.h>
#include <openssl/engine.h>

/*
* OpenSSL 3.0 deprecates the OpenSSL's ENGINE API.
*
* Remove this if/when that API is no longer used
*/
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

/*
* Use CMS if we have openssl-1.0.0 or newer available - otherwise we have to
* assume that it's not available and its header file is missing and that we
Expand Down

0 comments on commit 6bfb56e

Please sign in to comment.