Skip to content

Commit 6bfb56e

Browse files
committed
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 <[email protected]>
1 parent 34f4335 commit 6bfb56e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

certs/extract-cert.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
#include <openssl/err.h>
2424
#include <openssl/engine.h>
2525

26+
/*
27+
* OpenSSL 3.0 deprecates the OpenSSL's ENGINE API.
28+
*
29+
* Remove this if/when that API is no longer used
30+
*/
31+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32+
2633
#define PKEY_ID_PKCS7 2
2734

2835
static __attribute__((noreturn))

scripts/sign-file.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
#include <openssl/err.h>
3030
#include <openssl/engine.h>
3131

32+
/*
33+
* OpenSSL 3.0 deprecates the OpenSSL's ENGINE API.
34+
*
35+
* Remove this if/when that API is no longer used
36+
*/
37+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
38+
3239
/*
3340
* Use CMS if we have openssl-1.0.0 or newer available - otherwise we have to
3441
* assume that it's not available and its header file is missing and that we

0 commit comments

Comments
 (0)