Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 26, 2021

Conversation

odhanson
Copy link
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
Copy link

ghost commented Jun 26, 2021

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
Member Author

cc: @stephentoub

Copy link
Member

@stephentoub stephentoub left a comment

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