summaryrefslogtreecommitdiff
path: root/scripts/extract-cert.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-06-08 13:18:39 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-25 17:40:20 +0100
commitd79d2463dcb9e89bf576fc3bba28607309ce38ef (patch)
tree720525de955a1bd893664de3d61f6dee64bc9528 /scripts/extract-cert.c
parent7a6051d734f1ed0031e2216f9a538621235c11a4 (diff)
cert host tools: Stop complaining about deprecated OpenSSL functions
commit 6bfb56e93bcef41859c2d5ab234ffd80b691be35 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/extract-cert.c')
-rw-r--r--scripts/extract-cert.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/extract-cert.c b/scripts/extract-cert.c
index b071bf476fea..dd1a4bd706a2 100644
--- a/scripts/extract-cert.c
+++ b/scripts/extract-cert.c
@@ -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))