Skip to content

x509_vfy.c: Revert the core of #14094 regarding chain_build() error reporting - #18758

Closed
DDvO wants to merge 2 commits into
openssl:masterfrom
siemens:x509_chain_build_fix_18691
Closed

DDvO wants to merge 2 commits into
openssl:masterfrom
siemens:x509_chain_build_fix_18691

Conversation

@DDvO

@DDvO DDvO commented Jul 9, 2022 •

Copy link
Copy Markdown
Contributor

The problem of producing to-the-point chain building diagnostics will be fixed in the follow-up PR #18761.

Fixes #18691.

On this occasion, in a separate commit:

  • test/certs/setup.sh: add missing comment on CA cert variant without basic constraints

DDvO added 2 commits July 8, 2022 21:57
…error reporting

The problem of producing to-the-point diagnostics will be fixed in a follow-up PR.
Fixes openssl#18691
@DDvO DDvO added branch: master Applies to master branch approval: review pending This pull request needs review by a committer approval: otc review pending triaged: bug The issue/pr is/fixes a bug branch: 3.0 Applies to openssl-3.0 branch (EOL) labels Jul 9, 2022
@DDvO
DDvO requested review from paulidale and vdukhovni July 9, 2022 09:19

@vdukhovni vdukhovni left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

Comment thread crypto/x509/x509_vfy.c
* Every other error code likely indicates a real error.
*/
if (err != X509_V_ERR_SUBJECT_ISSUER_MISMATCH)
ctx->error = err;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps drop the comment too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the aim was just to revert #14094, I would have dropped this comment, too, and further simplified this function again.
Yet the comment will be helpful again with #18761.

@t8m t8m removed the approval: review pending This pull request needs review by a committer label Jul 11, 2022
@t8m t8m added approval: done This pull request has the required number of approvals and removed approval: otc review pending labels Jul 11, 2022
@openssl-machine openssl-machine removed the approval: done This pull request has the required number of approvals label Jul 12, 2022
@openssl-machine

Copy link
Copy Markdown
Collaborator

This pull request is ready to merge

@openssl-machine openssl-machine added the approval: ready to merge The 24 hour grace period has passed, ready to merge label Jul 12, 2022
openssl-machine pushed a commit that referenced this pull request Jul 12, 2022
…asic constraints

Reviewed-by: Viktor Dukhovni <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: David von Oheimb <[email protected]>
(Merged from #18758)

(cherry picked from commit a148a9b)
openssl-machine pushed a commit that referenced this pull request Jul 12, 2022
…eporting

The problem of producing to-the-point diagnostics will be fixed in a follow-up PR.
Fixes #18691

Reviewed-by: Viktor Dukhovni <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: David von Oheimb <[email protected]>
(Merged from #18758)

(cherry picked from commit 1f00dc4)
openssl-machine pushed a commit that referenced this pull request Jul 12, 2022
…asic constraints

Reviewed-by: Viktor Dukhovni <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: David von Oheimb <[email protected]>
(Merged from #18758)
openssl-machine pushed a commit that referenced this pull request Jul 12, 2022
…eporting

The problem of producing to-the-point diagnostics will be fixed in a follow-up PR.
Fixes #18691

Reviewed-by: Viktor Dukhovni <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: David von Oheimb <[email protected]>
(Merged from #18758)
@DDvO

DDvO commented Jul 12, 2022

Copy link
Copy Markdown
Contributor Author

Merged to 3.0 and master - thanks @vdukhovni, @t8m, and @paulidalef for the swift approval.

@DDvO DDvO closed this Jul 12, 2022
sftcd pushed a commit to sftcd/openssl that referenced this pull request Sep 24, 2022
…asic constraints

Reviewed-by: Viktor Dukhovni <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: David von Oheimb <[email protected]>
(Merged from openssl#18758)
sftcd pushed a commit to sftcd/openssl that referenced this pull request Sep 24, 2022
…error reporting

The problem of producing to-the-point diagnostics will be fixed in a follow-up PR.
Fixes openssl#18691

Reviewed-by: Viktor Dukhovni <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: David von Oheimb <[email protected]>
(Merged from openssl#18758)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Applies to master branch branch: 3.0 Applies to openssl-3.0 branch (EOL) triaged: bug The issue/pr is/fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

X509_verify_cert returns different result with OpenSSL 3.0

5 participants