-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add Dispose for X509Chain instance #110740
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
Changes from 1 commit
09af542
1655745
785577f
9fd6c3c
3ea8658
469b268
aa984d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -706,7 +706,7 @@ private void Verify( | |||
|
|
||||
| if (!verifySignatureOnly) | ||||
| { | ||||
| X509Chain chain = new X509Chain(); | ||||
| using X509Chain chain = new X509Chain(); | ||||
| chain.ChainPolicy.ExtraStore.AddRange(extraStore); | ||||
| chain.ChainPolicy.RevocationMode = X509RevocationMode.Online; | ||||
| chain.ChainPolicy.RevocationFlag = X509RevocationFlag.ExcludeRoot; | ||||
|
||||
| Assert.NotSame(cert, chain.ChainElements[0].Certificate); |
extraStore or what have you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added try/finally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of the implicit scope using, this should be a normal block-body using statement, and the end of the block should be at the end of the
ifthat callschain.Build()(so between that block and the EKU check)