BACKPORT: cert host tools: Stop complaining about deprecated OpenSSL functions

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 <torvalds@linux-foundation.org>
Change-Id: I791aad9b767a828d1883aa411c123c3e1627ae8d
This commit is contained in:
Linus Torvalds 2022-06-09 04:54:27 +00:00 committed by spakkkk
parent 3c60807942
commit 46917a04eb
2 changed files with 14 additions and 0 deletions

View File

@ -23,6 +23,13 @@
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/engine.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 #define PKEY_ID_PKCS7 2
static __attribute__((noreturn)) static __attribute__((noreturn))

View File

@ -29,6 +29,13 @@
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/engine.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 * 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 * assume that it's not available and its header file is missing and that we