From: Dhanuka Warusadura <wdnuka@gmail.com>
To: jarkko@kernel.org, dave.hansen@linux.intel.com, shuah@kernel.org,
linux-sgx@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Dhanuka Warusadura <wdnuka@gmail.com>
Subject: [PATCH] selftests/sgx: Fix OpenSSL deprecated warning for ERR_get_error_line
Date: Sun, 28 Aug 2022 11:48:59 +0530 [thread overview]
Message-ID: <20220828061859.181061-1-wdnuka@gmail.com> (raw)
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
next reply other threads:[~2022-08-28 6:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-28 6:18 Dhanuka Warusadura [this message]
2022-08-29 12:15 ` [PATCH] selftests/sgx: Fix OpenSSL deprecated warning for ERR_get_error_line 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220828061859.181061-1-wdnuka@gmail.com \
--to=wdnuka@gmail.com \
--cc=dave.hansen@linux.intel.com \
--cc=jarkko@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-sgx@vger.kernel.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).