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 regression in i2d_re_X509_REQ_tbs() #19299
Conversation
This fixes regression from commit 8e39049. There is also no point in setting the modified flag after just calling i2d. Fixes openssl#19297
81de79e
to
881e094
Compare
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.
LGTM
Just found in
that at least for some related data types the |
Should this have a unit test? |
It should. However IMO this falls under much bigger effort to write the test than the actual fix. We do not have any unit test for i2d_re_* functions nor for the i2d_X509_REQ() function. I could squeeze it in x509_check_cert_pkey_test.c easily, on the other hand it is a little bit weird to piggy-back on quite unrelated test. |
Thanks for your quick works.
My understanding from reading the above part of manpage is that setting the
If your work resolves this situation, that will be great, thanks. |
de54030 looks good to me, thanks! |
@DDvO still OK? |
Yep |
24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually. |
Merged to master and 3.0 branches. Thank you for the reviews. |
This fixes regression from commit 8e39049. There is also no point in setting the modified flag after just calling i2d. Fixes openssl#19297 Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from openssl#19299)
This fixes regression from commit 8e39049.
Fixes #19297