feat(libressl3): implement EVP_PKEY_get0_RSA, EVP_PKEY_get0_DSA and EVP_PKEY_get0_DH #12582
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12582"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-10-28T21:21:58Z.
What
NidRsaEncryption(6),NidDhKeyAgreement(28),NidDsa(116), andNidRsassaPss(912) incore/libs/prx/libSceLibreSsl3/include/Key.hpp.EVP_PKEY_get0_RSA,EVP_PKEY_get0_DSA, andEVP_PKEY_get0_DHincore/libs/prx/libSceLibreSsl3/src/Key.cpp, returning the underlying key pointer fromLibreSsl3EvpPkeywhen the key type matches ornullptron mismatch, following LibreSSL 4.0.0. Null key pointers throwstd::invalid_argument.core/libs/prx/libSceLibreSsl3/include/Api.hppand remove stubs fromcore/libs/prx/libSceLibreSsl3/Export.cpp.docs/dev/debt/libSceLibreSsl3.mdnoting unmodeledERRand omittedEVPerrorcodes.core/libs/tests/GuestLibreSsl3KeyReference.cppto verify valid key pointer retrieval, type filtering, and null key exception handling.Tested
Windows 11, verified
guest_libressl3_key_referencecovering key retrieval and null argument validation forEVP_PKEY_get0_RSA,EVP_PKEY_get0_DSA, andEVP_PKEY_get0_DH.Ran locally on
937943669c:Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T21:29:35Z.
Review: CHANGES_REQUESTED
The implementation and focused accessor tests look internally consistent, but the PR needs an explicit landing order with the other open
libSceLibreSsl3reference-count changes before approval. I fetched the exact current heads and checked pairwise merge previews: #12582 conflicts with #12578 and #12580 inKey.cpp,GuestLibreSsl3KeyReference.cpp, anddocs/dev/debt/libSceLibreSsl3.md. All three PR descriptions currently sayDepends on: none.Please agree which PR lands first, restack the later changes as needed, and record the resulting order in each affected
Depends onchecklist. This is a repository coordination requirement; I am not reporting a functional defect in the accessors here. Hosted Windows is still running; Ubuntu/macOS and product test jobs are not complete or are skipped.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T21:36:10Z.
Review: CHANGES_REQUESTED
Re-checked — changes requested
The accessor implementation and focused tests look internally consistent. This PR still needs an explicit order with #12578 and #12580: exact-head pairwise merge previews conflict in files both changes edit, but this PR currently says
Depends on: none.What I ran
dd47c78d6d72d3d88b2d21ccac72ffd8adb193c3with #12578 head00b24c75b4be4b3ee7ed97013e4ea4a7a21b3afeand #12580 heade5f35a2407c01477085fc0d9aa78ddbba669fda7.main319621ba2e578bd053b0baba2877fe70520e0737.Results
Findings
Blocking
Please record an agreed dependency/landing order or restack this PR so its relationship to the two open sibling changes is explicit. The merge previews conflict in:
core/libs/prx/libSceLibreSsl3/src/Key.cppcore/libs/tests/GuestLibreSsl3KeyReference.cppdocs/dev/debt/libSceLibreSsl3.mdNon-blocking
I found no separate functional blocker in the implementation or focused tests. This review is requesting changes for integration clarity only.
Sources
Not verified
I did not independently rerun the focused C++ tests. Hosted Linux/product checks were skipped.
To get this to a good state
Set the intended order in the PR body/checklist and declare the predecessor dependency, or restack and update the affected diffs so the pairwise merge previews are clean.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T07:17:17Z.
Review: APPROVED
Re-checked — new head, looks good
I reviewed exact head
937943669c354a2b630e12b34002db5d8d26ef7f; the declared order is now #12578 → #12580 → #12582, and the accessor/type checks and reference-count tests match the implementations in the stacked diff. The author reportsguest_libressl3_key_referencepassing on this exact head; hosted Windows, conventions, labels, and report checks remain pending, while Linux and specialized jobs are skipped. I did not build or run CTest locally, and console layouts/error-queue behavior remain unverified as recorded in the debt entry.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T07:33:07Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The declared dependency order is clear, but the live branch is not stacked on #12580 and the combined merge preview conflicts in three files.
What I ran
I checked PR head
937943669c354a2b630e12b34002db5d8d26ef7fagainst currentmainatf7f03daf52f11191174b1be089a56e268390a707. The individual PR merges cleanly ontomain; the blocker below is the integration of the declared dependency stack. Environment: Linux, Git.Results
Key.cpp,GuestLibreSsl3KeyReference.cpp, anddocs/dev/debt/libSceLibreSsl3.md.git diff --checkagainst mainUnedited command output
Findings
Blocking
Depends on: #12580, but its commit graph contains separate copies of the earlierSSL_CTX_up_refandX509_STORE_up_refcommits rather than #12580's live head as an ancestor. Combining the current #12580 and #12582 heads conflicts in the three files above, so the stated landing order cannot be applied cleanly. After #12580 is merged, restack #12582 on the resultingmain, retain the EVP accessor change, resolve any resulting conflicts, and rerun the focused test and checks on the new head.Non-blocking
docs/dev/debt/libSceLibreSsl3.mdsogit diff --checkis clean.Not verified
To get this to a good state
Please restack this PR after #12580 lands, keep the dependency field aligned with the resulting branch, remove the trailing blank line, and rerun the focused test. I will re-check the new head, dependency merge preview, and the same applicable checks.
Pull request closed