Extend usability of CMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IR quirk#28015
Extend usability of CMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IR quirk#28015DDvO wants to merge 2 commits intoopenssl:masterfrom
CMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IR quirk#28015Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR exposes the CMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IR quirk in the openssl cmp CLI (behind a compile‐time guard), ensures newly accepted trust anchors persist through the full transaction, and updates the related documentation.
- Expose
-ta_in_ip_extracertsCLI switch when built withOPENSSL_CMP_APP_ALLOW_UNSAFE - Persist self–issued extraCerts as trust anchors across all CMP messages in a transaction
- Revise and expand documentation for the 3GPP TS 33.310 quirk option
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| doc/man3/OSSL_CMP_CTX_new.pod | Expanded and clarified the behavior of the PERMIT_TA_IN_EXTRACERTS_FOR_IR option. |
| doc/man1/openssl-cmp.pod.in | Added -ta_in_ip_extracerts flag, its description, and version note behind a guard. |
| crypto/cmp/cmp_vfy.c | After initial validation, cache self–issued extraCerts into the trust store for further messages. |
| apps/cmp.c | Introduced opt_ta_in_ip_extracerts under OPENSSL_CMP_APP_ALLOW_UNSAFE and wired it into context setup and option parsing. |
Comments suppressed due to low confidence (1)
apps/cmp.c:90
- [nitpick] Consider adding a test case for the new
-ta_in_ip_extracertsCLI flag to verify it correctly enablesCMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IRin the context.
#ifdef OPENSSL_CMP_APP_ALLOW_UNSAFE
0237d1f to
8d5a972
Compare
shahsb
left a comment
There was a problem hiding this comment.
Consider adding a CMP_CTX_clear_extra_certs_cache(ctx) API for explicit cleanup (though not required in this PR).
I do not see the need for this. The |
|
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 |
b16efa8 to
02e2081
Compare
|
Rebased on latest |
|
I suppose the new CIFuzz failure is unrelated. |
02e2081 to
34a0e0b
Compare
While following the latest reviewer suggestion, rebased again to hopefully get rid of the recent unrelated CI fuzz failure. |
|
@t8m did you see that I followed your change suggestion? |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
34a0e0b to
407b440
Compare
|
Rebased to fix simple merge conflict. Ping @t8m for checking the requested changes done and approval |
|
Windoze CI failures are unrelated. |
407b440 to
4e399cd
Compare
|
Rebased to fix simple doc merge conflict and removed from here the addtion |
|
Asking again @openssl/committers for 2nd approval. |
|
This pull request is ready to merge |
…transaction (also pkiconf); update doc
…st anchors in IP extracerts according to 3GPP TS 33.310 Fixes openssl#27888
4e399cd to
8d210a7
Compare
|
Unfortunately, this PR suffered from merge conflicts a few hours before it was allowed to get merged Moreover, now Are re-approvals required here? |
|
I do not think we need re-approvals. New coding style check passes. |
|
Merged to the master branch. Thank you for your contribution. |
…transaction (also pkiconf); update doc Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28015)
…st anchors in IP extracerts according to 3GPP TS 33.310 Fixes #27888 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28015)
…transaction (also pkiconf); update doc Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#28015)
…st anchors in IP extracerts according to 3GPP TS 33.310 Fixes openssl#27888 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#28015)
As requested in #27888, allow setting the quirk option
CMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IR,which had been added for special 3GPP support, also from the
cmpapp.Yet as discussed there, not doing this by default: only ifOPENSSL_CMP_APP_ALLOW_UNSAFEis defined at compile time.Also make sure that with this quirk option, the new TA(s) are used for whole transaction (also
pkiconf)and update and slightly improve its doc.