Conversation
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.
|
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
115df45
Compare
|
Rebased to fix merge conflict after clang-format |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 61 days ago |
|
@openssl/committers can we please get this done soon? |
|
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 <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from #28986)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from #28986)
…e validating signature-based protection of CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from #28986) (cherry picked from commit 0a6b666)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from #28986) (cherry picked from commit b6eb715)
…e validating signature-based protection of CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from #28986) (cherry picked from commit 0a6b666)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from #28986) (cherry picked from commit b6eb715)
|
Merged to master, 4.0, 3.6, and 3.5. |
…e validating signature-based protection of CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from #28986) (cherry picked from commit 0a6b666)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from #28986) (cherry picked from commit b6eb715)
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 <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from openssl#28986)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from openssl#28986)
…e validating signature-based protection of CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:38:59 2026 (Merged from openssl#28986)
…utput on failure validating CMP messages Reviewed-by: Daniel Kubec <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Eugene Syromiatnikov <[email protected]> MergeDate: Wed Jun 10 06:39:00 2026 (Merged from openssl#28986)