-
-
Notifications
You must be signed in to change notification settings - Fork 877
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
X509: always base64-encode extensions for which _getMapping returns a bool #629
Conversation
|
||
$spkac = $x509->loadX509($test); | ||
|
||
$this->assertEquals($a['tbsCertificate']['extensions'][8]['extnValue'], 'MDUwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUrDgMCBzAKBggqhkiG9w0DBw=='); |
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.
Swap arguments. $expected comes first.
Replaces #628 Btw, I am still curious if it is possible to change the branch a PR is made against. Any ideas? |
Unfortunately it's not. |
…ensions-2 X509: always base64-encode extensions for which _getMapping returns a bool * terrafrost/x509-unsupported-extensions-2: Tests/X509: fix unit test Tests/X509: add unit test for unsupported extension encoding X509: always base64-encode extensions for which _getMapping returns a bool
|
||
$cert = $x509->loadX509($test); | ||
|
||
$this->assertEquals($cert['tbsCertificate']['extensions'][8]['extnValue'], 'MDUwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUrDgMCBzAKBggqhkiG9w0DBw=='); |
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.
Please swap the parameters. $expected comes first.
The latest commit addresses your comment. I'll do the unit test for #627 after this has been merged (rather than creating a second copy of X509Test.php that's pretty much guaranteed to have a merge conflict) |
This looks good. The test fails without the patch. :-) |
X509: always base64-encode extensions for which _getMapping returns a bool * terrafrost/x509-unsupported-extensions-2: Tests/X509: swap expected and actual value Tests/X509: fix unit test Tests/X509: add unit test for unsupported extension encoding X509: always base64-encode extensions for which _getMapping returns a bool
Changed class name on merge. |
Same thing as #628 but against 1.0 instead.