未验证 提交 a7666476 编写于 作者: O Oded Hanson 提交者: GitHub

minor optimization: move creation of X509 Subject Summary into catch block on MacOS. (#54774)

上级 6cccee5f
......@@ -399,7 +399,6 @@ private void EnsureCertData()
return;
Debug.Assert(!_certHandle.IsInvalid);
string? subjectSummary = Interop.AppleCrypto.X509GetSubjectSummary(_certHandle);
try
{
......@@ -407,6 +406,7 @@ private void EnsureCertData()
}
catch (CryptographicException e)
{
string? subjectSummary = Interop.AppleCrypto.X509GetSubjectSummary(_certHandle);
if (subjectSummary is null)
{
throw;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册