-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fix crash when subject block is empty #7
Conversation
…ead. Same panic occurs in tls_self_signed_cert, fixed that also.
Thanks for fixing this, @SpencerBrown! The change looks good. I noticed there's some commented-out code in the test. Is that due to the change in certificate? Do you know what it'd take to be able to un-comment that again? |
Thanks for reviewing this PR! Yes, this is due to the change in certificate. I used this provider to generate a new hard-coded CA certificate and private key in To enable this test, I would need to either:
Option (1) does not seem to progress the cause of this provider. Adding this test back in would not be testing anything that this provider currently handles. Option (2) seems reasonable to me, but would be better handled by a separate PR implementing the AuthorityKeyID feature, then adding back the test for it. I would be happy to do this as time allows, as it would advance the capabilities of this provider. What do you think? |
Thanks for that additional context, @SpencerBrown! Given what you explained here, I'm happy to move forward with this code removed altogether and then we can potentially add this back in a later change that also adds support for the feature. Would you mind updating this to remove that commented-out code (just so it isn't confusing to any future maintainer looking at this code)? I think this is ready to go after that, and we can always find that old code in the version control history if we want to re-introduce it later. Thanks again for working on this! |
Thanks! I removed the commented-out code. |
Thanks @SpencerBrown! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes issue #1 (panic when subject block is empty in tls_cert_request). Return error instead. Same panic occurs in tls_self_signed_cert, fixed that also.