-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and Subj... #1057
Conversation
…ubjectKeyIdentifierExtension.
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message. |
An argument exception thrown in a method that receives no arguments? (That looks suspicious.) Did you try building the unit tests via "make test" instead of MSBuild/xbuild? |
I will build a Linux VM aside and see if |
The best thing to do is throw what MS.NET throws (even if it wrongly throws ArgumentException). That's why a unit test is very recommended to add, that checks this.
Fixing the .csproj to make it build in Windows is also welcomed. |
Unit test are required. In this case you want to ensure that encode/decode can roundtrip with same data correctly. Ideally you'll be able to run the existing one but that should not stop you from writing new tests. |
@spouliot @knocte I just finished two simplest unit test files for each classes. What is the header I should use for the new source files? What about the below
|
Please add the MIT license text to the header. Code is frequently copied between implementation and test files. |
…KeyIdentifierExtensionTest.
Done. Can you take a look? |
[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and Subj...
Review and tested (locally). The .sources file for the Makefile is not updated (but I'll take care a it in a separate commit). Thanks! |
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message. |
…gc-suspend-loop Move thread exit check within loop.
When trying to create new certificates via
X509CertificateBuilder
it is very important to have AuthorityKeyIdentifier and SubjectKeyIdentifier extensions configurable.This pull request implements the required
Encode
methods of two classes and have been verified to be working.I cannot build the .Tests project and that's why no unit test case is attached.