summaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-06-08 13:18:39 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-06-08 13:18:39 -0700
commit6bfb56e93bcef41859c2d5ab234ffd80b691be35 (patch)
tree170630f317036ed9b92b0d0fb7822e986f933c84 /certs
parent34f4335c16a5f4bb7da6c8d2d5e780b6a163846a (diff)
downloadlinux-stable-6bfb56e93bcef41859c2d5ab234ffd80b691be35.tar.gz
linux-stable-6bfb56e93bcef41859c2d5ab234ffd80b691be35.tar.bz2
linux-stable-6bfb56e93bcef41859c2d5ab234ffd80b691be35.zip
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>
Diffstat (limited to 'certs')
-rw-r--r--certs/extract-cert.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/certs/extract-cert.c b/certs/extract-cert.c
index f7ef7862f207..8c1fb9a70d66 100644
--- a/certs/extract-cert.c
+++ b/certs/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))