public inbox for linux-sgx@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/sgx: Ignore OpenSSL 3.0 deprecated functions warning
@ 2022-07-21 19:40 Kristen Carlson Accardi
  2022-07-21 20:02 ` Dave Hansen
  2022-07-28  8:00 ` Jarkko Sakkinen
  0 siblings, 2 replies; 5+ messages in thread
From: Kristen Carlson Accardi @ 2022-07-21 19:40 UTC (permalink / raw)
  To: linux-kernel, Jarkko Sakkinen, Dave Hansen, Shuah Khan
  Cc: Kristen Carlson Accardi, linux-sgx, linux-kselftest

OpenSSL 3.0 deprecates some of the functions used in the SGX
selftests, causing build errors on new distros. For now ignore
the warnings until support for the functions is no longer
available.

Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
---
 tools/testing/selftests/sgx/sigstruct.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/testing/selftests/sgx/sigstruct.c b/tools/testing/selftests/sgx/sigstruct.c
index 50c5ab1aa6fa..bb191b70141a 100644
--- a/tools/testing/selftests/sgx/sigstruct.c
+++ b/tools/testing/selftests/sgx/sigstruct.c
@@ -17,6 +17,9 @@
 #include "defines.h"
 #include "main.h"
 
+/* OpenSSL 3.0 has deprecated some functions. For now just ignore the warnings. */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
 struct q1q2_ctx {
 	BN_CTX *bn_ctx;
 	BIGNUM *m;
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-28  8:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-21 19:40 [PATCH] selftests/sgx: Ignore OpenSSL 3.0 deprecated functions warning Kristen Carlson Accardi
2022-07-21 20:02 ` Dave Hansen
2022-07-21 20:08   ` Kristen Carlson Accardi
2022-07-21 20:14     ` Dave Hansen
2022-07-28  8:00 ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox