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
[apps/ca] Clean and simplify CA-certificate output path/filename construction #1936
[apps/ca] Clean and simplify CA-certificate output path/filename construction #1936
Conversation
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.
remove the CI changes, otherwise looks good.
066fe2a
to
8d267aa
Compare
@richsalz : Yes, i forget to drop this one; I use it as I'm bored of CI mail notifications. |
apps/ca.c
Outdated
|
||
j = ASN1_STRING_length(serialNumber); | ||
p = (const char *)ASN1_STRING_get0_data(serialNumber); | ||
new_cert[PATH_MAX - 1] = '\0'; |
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.
There's really no need for this at all, since the following strcpy
will place the NUL character in its correct position anyway.
c655ed5
to
8e22b7e
Compare
5cfcabb
to
7be421c
Compare
72ae239
to
6acf4b6
Compare
6acf4b6
to
2d8c233
Compare
ad5f9d7
to
d36c67e
Compare
6c5b513
to
4ba3d09
Compare
4ba3d09
to
057f236
Compare
c418dd8
to
3c4187f
Compare
0948201
to
ff432cf
Compare
ff432cf
to
9d0cf9a
Compare
9d0cf9a
to
bc4b78f
Compare
cb2dcca
to
9290342
Compare
9290342
to
61e99bc
Compare
61e99bc
to
1e23dc7
Compare
Ping ! old PR that fix some remarks raised in #1569. |
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.
thanks for the nudge!
cc08e28
to
82efa8d
Compare
82efa8d
to
bff65cc
Compare
bff65cc
to
cba5b35
Compare
cb452c3
to
c16ac24
Compare
Checking is strictly same as sizeof(".pem") == 5
too strict by 2 bytes.
c16ac24
to
e8fd495
Compare
Thanks !! |
Ping ! |
Few code format fixup Fix limit computation; was too strict by 2 bytes. Simplify computation of buffer limits Checking is strictly same as sizeof(".pem") == 5 Simplify loop of code for certificate filename creation Fix MAX_PATH usage Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from #1936)
Squashed and merged. Thank you for the cleanups! |
Checklist
Description of change
Follows discussions in PR #1569
( Found a subtle bug while rereading my changes. => was merged as 0db1fb3 )
Applicable to master and 1.1.0 only.