Skip to content

Comments

CMP check_cert_path_3gpp(): add missing checks trying to retrieve newly enrolled cert with PERMIT_TA_IN_EXTRACERTS_FOR_IR#29302

Closed
DDvO wants to merge 1 commit intoopenssl:masterfrom
siemens:fix_29285_CMP_check_cert_path_3gpp
Closed

CMP check_cert_path_3gpp(): add missing checks trying to retrieve newly enrolled cert with PERMIT_TA_IN_EXTRACERTS_FOR_IR#29302
DDvO wants to merge 1 commit intoopenssl:masterfrom
siemens:fix_29285_CMP_check_cert_path_3gpp

Conversation

@DDvO
Copy link
Contributor

@DDvO DDvO commented Dec 3, 2025

Fixes #29285

@DDvO DDvO requested a review from Copilot December 3, 2025 18:04
@DDvO DDvO added branch: master Applies to master branch approval: review pending This pull request needs review by a committer triaged: bug The issue/pr is/fixes a bug tests: exempted The PR is exempt from requirements for testing branch: 3.5 Applies to openssl-3.5 branch: 3.6 Applies to openssl-3.6 labels Dec 3, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes missing null checks and improves the check_cert_path_3gpp() function to properly handle retrieval of newly enrolled certificates when the PERMIT_TA_IN_EXTRACERTS_FOR_IR option is enabled.

Key Changes:

  • Added message type check to ensure newly enrolled cert validation only runs for IP (Initialization Response) messages
  • Improved error handling with proper null checks before attempting to retrieve and validate the newly enrolled certificate
  • Enhanced debug logging to indicate when 3GPP mode is used for validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DDvO
Copy link
Contributor Author

DDvO commented Dec 4, 2025

The GitHub CI / external-tests-misc (pull_request) failure is unrelated.
In recent times, the CI appears generally somewhat unstable.

@esyr esyr added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Dec 4, 2025
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Dec 5, 2025
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

openssl-machine pushed a commit that referenced this pull request Dec 5, 2025
…ly enrolled cert

Fixes #29285

Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
(Merged from #29302)

(cherry picked from commit 8482cb8)
openssl-machine pushed a commit that referenced this pull request Dec 5, 2025
…ly enrolled cert

Fixes #29285

Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
(Merged from #29302)
openssl-machine pushed a commit that referenced this pull request Dec 5, 2025
…ly enrolled cert

Fixes #29285

Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
(Merged from #29302)

(cherry picked from commit 8482cb8)
@DDvO
Copy link
Contributor Author

DDvO commented Dec 5, 2025

Merged to master, 3.6, and 3.5.
Thank you for the very swift approvals.

@DDvO DDvO closed this Dec 5, 2025
cxx194832 pushed a commit to cxx194832/openssl that referenced this pull request Dec 12, 2025
…ly enrolled cert

Fixes openssl#29285

Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
(Merged from openssl#29302)
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.5 Applies to openssl-3.5 branch: 3.6 Applies to openssl-3.6 tests: exempted The PR is exempt from requirements for testing triaged: bug The issue/pr is/fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segfault validating CMP pkiConf in 3GPP quirk mode PERMIT_TA_IN_EXTRACERTS_FOR_IR

4 participants