linux-sgx.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/sgx: Fix OpenSSL deprecated warning for ERR_get_error_line
@ 2022-08-28  6:18 Dhanuka Warusadura
  2022-08-29 12:15 ` Jarkko Sakkinen
  0 siblings, 1 reply; 7+ messages in thread
From: Dhanuka Warusadura @ 2022-08-28  6:18 UTC (permalink / raw)
  To: jarkko, dave.hansen, shuah, linux-sgx, linux-kselftest, linux-kernel
  Cc: Dhanuka Warusadura

These changes fix the "error: ‘ERR_get_error_line’ is deprecated:
Since OpenSSL 3.0" warning.

Signed-off-by: Dhanuka Warusadura <wdnuka@gmail.com>
---
 tools/testing/selftests/sgx/sigstruct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/sgx/sigstruct.c b/tools/testing/selftests/sgx/sigstruct.c
index 50c5ab1aa6fa..671d9b58e274 100644
--- a/tools/testing/selftests/sgx/sigstruct.c
+++ b/tools/testing/selftests/sgx/sigstruct.c
@@ -136,7 +136,7 @@ static bool check_crypto_errors(void)
 			break;
 
 		had_errors = true;
-		err = ERR_get_error_line(&filename, &line);
+		err = ERR_peek_last_error_line(&filename, &line);
 		ERR_error_string_n(err, str, sizeof(str));
 		fprintf(stderr, "crypto: %s: %s:%d\n", str, filename, line);
 	}
-- 
2.37.2


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

end of thread, other threads:[~2022-08-31  6:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-28  6:18 [PATCH] selftests/sgx: Fix OpenSSL deprecated warning for ERR_get_error_line Dhanuka Warusadura
2022-08-29 12:15 ` Jarkko Sakkinen
2022-08-30  2:52   ` Jarkko Sakkinen
2022-08-30 11:18     ` Dhanuka
2022-08-31  1:06       ` Jarkko Sakkinen
2022-08-31  6:33         ` Dhanuka
2022-08-31  6:39           ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).