Skip to content

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

Merged
jkotas merged 1 commit into
dotnet:mainfrom
odhanson:features/optimizeCatchCase
Jun 26, 2021
Merged

jkotas merged 1 commit into
dotnet:mainfrom
odhanson:features/optimizeCatchCase

Conversation

@odhanson

Copy link
Copy Markdown
Member

Currently we are making a call to Interop.AppleCrypto.X509GetSubjectSummary on each call to EnsureCertData.
However, this is needed only when something goes wrong, for a better error message. Thus, moving the call into the catch block.

@ghost ghost added the area-System.Security label Jun 26, 2021
@ghost

ghost commented Jun 26, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks
See info in area-owners.md if you want to be subscribed.

Issue Details

Currently we are making a call to Interop.AppleCrypto.X509GetSubjectSummary on each call to EnsureCertData.
However, this is needed only when something goes wrong, for a better error message. Thus, moving the call into the catch block.

Author: odhanson
Assignees: -
Labels:

area-System.Security

Milestone: -

@odhanson

Copy link
Copy Markdown
Member Author

cc: @stephentoub

@stephentoub stephentoub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per #54613 (review). Thanks.

@jkotas
jkotas merged commit a766647 into dotnet:main Jun 26, 2021
@odhanson
odhanson deleted the features/optimizeCatchCase branch June 26, 2021 13:49
@ghost ghost locked as resolved and limited conversation to collaborators Jul 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants