feat(libressl3): retain X509 store references #12580
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12580"
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:20:52Z.
What
Implement
X509_STORE_up_ref_nid_postfixinlibSceLibreSsl3.core/libs/prx/libSceLibreSsl3/src/Key.cpp, implementX509_STORE_up_ref_nid_postfix(LibreSslX509Store* store)to atomically incrementstore->referencesviaRetain_nid_no_patch, following LibreSSL 4.0.0 x509_lu.c#L240-L244.std::invalid_argument("X509_STORE_up_ref requires a store").LibreSslX509Storesize (136 bytes) andreferencesoffset (128 bytes) fromlibSceLibreSslwithstatic_assertinKey.cpp.X509_STORE_up_ref_nid_postfix(LibreSslX509Store* store)incore/libs/prx/libSceLibreSsl3/include/Api.hppand remove the stub fromcore/libs/prx/libSceLibreSsl3/Export.cpp.docs/dev/debt/libSceLibreSsl3.md.core/libs/tests/GuestLibreSsl3KeyReference.cppto coverLibreSslX509StorewithCheckKey<LibreSslX509Store>(X509_STORE_up_ref_nid_postfix, 128).Tested
Windows 11, verified reference count increments across initial values, sequential retain, and concurrent multithreaded retain via GuestLibreSsl3KeyReference.
Ran locally on
71e4f22169: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:33Z.
Review: CHANGES_REQUESTED
The implementation and focused reference-count test 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: #12580 conflicts with #12578 and #12582 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 accessor 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:09Z.
Review: CHANGES_REQUESTED
Re-checked — changes requested
The ref-count change and its focused regression test look internally consistent. This PR still needs an explicit order with #12578 and #12582: exact-head pairwise merge previews conflict in the files both features edit, while the PR currently says
Depends on: none.What I ran
e5f35a2407c01477085fc0d9aa78ddbba669fda7with #12578 head00b24c75b4be4b3ee7ed97013e4ea4a7a21b3afeand #12582 headdd47c78d6d72d3d88b2d21ccac72ffd8adb193c3.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 test. 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.
Pull request closed