summaryrefslogtreecommitdiff
path: root/scripts/sign-file.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-06-08 13:18:39 -0700
committerNolen Johnson <johnsonnolen@gmail.com>2022-11-01 11:30:41 -0400
commit369119e5df4e48f1e737791e781da185b7810921 (patch)
tree4ce60ab09eea09cd3225538350460bdcfcef4f0d /scripts/sign-file.c
parentf8e30a0f9a170bd6f3323880b0fa0b691f702ed9 (diff)
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: I655a75665920983abc9c3b0d73abfcb34f41b610
Diffstat (limited to 'scripts/sign-file.c')
-rwxr-xr-xscripts/sign-file.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/sign-file.c b/scripts/sign-file.c
index 250a7a645033..b57ade78b24a 100755
--- a/scripts/sign-file.c
+++ b/scripts/sign-file.c
@@ -28,6 +28,13 @@
#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
* should use PKCS#7 instead. Switching to the older PKCS#7 format restricts