Uh oh!
There was an error while loading. Please reload this page.
cmp_vfy.c: fix major duplications and minor mistakes in diagnostic output on failure validating CMP messages - #28986
cmp_vfy.c: fix major duplications and minor mistakes in diagnostic output on failure validating CMP messages#28986DDvO wants to merge 2 commits into
cmp_vfy.c: fix major duplications and minor mistakes in diagnostic output on failure validating CMP messages#28986Conversation
DDvO
commented
Oct 23, 2025
- prevent needless and confusing duplication of diagnostic output on failure validating CMP messages
- small fixes on content and layout of diagnostics on failure validating signature-based message protection
There was a problem hiding this comment.
Pull Request Overview
This PR fixes diagnostic output issues in CMP message validation, specifically eliminating duplicate error messages and improving error reporting clarity. The changes focus on refining how validation failures are logged and reported to users.
Key changes:
- Restructures error reporting in signature validation to prevent duplicate diagnostics
- Adjusts log severity levels for more appropriate classification of validation issues
- Improves error message handling flow in certificate verification
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
openssl-machine
commented
Nov 23, 2025
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
…e validating signature-based protection of CMP messages
…utput on failure validating CMP messages
213417a to
115df45CompareDDvO
commented
Dec 22, 2025
Rebased to fix merge conflict after clang-format |
openssl-machine
commented
Jan 22, 2026
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
openssl-machine
commented
Mar 7, 2026
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
openssl-machine
commented
Apr 10, 2026
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
openssl-machine
commented
May 11, 2026
This PR is in a state where it requires action by @openssl/committers but the last update was 61 days ago |
DDvO
commented
Jun 8, 2026
@openssl/committers can we please get this done soon? |
openssl-machine
commented
Jun 9, 2026
This pull request is ready to merge |
| if (res) | ||
| goto end; | ||
| } | ||
| /* failed finding a sender cert that verifies the message signature */ |
There was a problem hiding this comment.
Would be nice to leave an empty line before comment and not after.
| if (res) | ||
| ERR_add_error_mem_bio("\n", bio); | ||
| if (res) { | ||
| ERR_add_error_txt(NULL, "\n"); |
There was a problem hiding this comment.
I would print a newline to bio instead, but that's a personal preference.
| @@ -56,8 +56,10 @@ static int verify_signature(const OSSL_CMP_CTX *cmp_ctx, | |||
| sig_err: | |||
There was a problem hiding this comment.
Commit message could've been more descriptive.
…e validating signature-based protection of CMP messages Reviewed-by: Daniel Kubec <kubec@openssl.foundation> Reviewed-by: Milan Broz <mbroz@openssl.org> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from #28986)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <kubec@openssl.foundation> Reviewed-by: Milan Broz <mbroz@openssl.org> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from #28986)
DDvO
commented
Jun 10, 2026
DDvO
commented
Jun 10, 2026
Merged to master, 4.0, 3.6, and 3.5. |
esyr
commented
Jun 10, 2026
No problem, those are nits, after all. You can adjust commit messages when applying: |
…e validating signature-based protection of CMP messages Reviewed-by: Daniel Kubec <kubec@openssl.foundation> Reviewed-by: Milan Broz <mbroz@openssl.org> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from openssl#28986)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <kubec@openssl.foundation> Reviewed-by: Milan Broz <mbroz@openssl.org> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from openssl#28986)
…e validating signature-based protection of CMP messages Reviewed-by: Daniel Kubec <kubec@openssl.foundation> Reviewed-by: Milan Broz <mbroz@openssl.org> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from openssl#28986)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <kubec@openssl.foundation> Reviewed-by: Milan Broz <mbroz@openssl.org> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from openssl#28986)