summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2023-03-23 08:50:46 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2023-03-23 08:51:53 +0100
commit5b80c021f5ca47fd33e44a064b73dad844b1ebf7 (patch)
tree94045c39dad8e0ee94c1b48cd6bf5eb56eb31137
parentd652b4e8279aef2a85f58676ab472744bafeafc9 (diff)
downloadextract-cert-master.tar.gz
extract-cert-master.tar.xz
Stop complaining about deprecated OpenSSL functionsHEADmaster
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> [mkl: ported from linux commit 6bfb56e93bce ("cert host tools: Stop complaining about deprecated OpenSSL functions")] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--extract-cert.c7
-rw-r--r--spki-hash.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/extract-cert.c b/extract-cert.c
index b071bf4..c14a4a0 100644
--- a/extract-cert.c
+++ b/extract-cert.c
@@ -25,6 +25,13 @@
#define PKEY_ID_PKCS7 2
+/*
+ * 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"
+
static __attribute__((noreturn))
void format(void)
{
diff --git a/spki-hash.c b/spki-hash.c
index 47bea50..4356ff7 100644
--- a/spki-hash.c
+++ b/spki-hash.c
@@ -27,6 +27,13 @@
#define PKEY_ID_PKCS7 2
+/*
+ * 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"
+
static __attribute__((noreturn))
void format(void)
{