diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2023-03-23 08:50:46 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2023-03-23 08:51:53 +0100 |
commit | 5b80c021f5ca47fd33e44a064b73dad844b1ebf7 (patch) | |
tree | 94045c39dad8e0ee94c1b48cd6bf5eb56eb31137 | |
parent | d652b4e8279aef2a85f58676ab472744bafeafc9 (diff) | |
download | extract-cert-5b80c021f5ca47fd33e44a064b73dad844b1ebf7.tar.gz extract-cert-5b80c021f5ca47fd33e44a064b73dad844b1ebf7.tar.xz |
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.c | 7 | ||||
-rw-r--r-- | spki-hash.c | 7 |
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) { |