feat(ssl): implement context-scoped PS5 certificate PEM reading #6511
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6511"
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 JJenkx on 2026-10-15T18:08:37Z.
What
Implement
sceSslGetPemwith the PS5 context-first four-argument call: context, certificate, caller-owned destination and in/outsize_tlength. A null destination queries the size; short buffers throw before writing. The PEM backend originated in jagrat Singh’s #5969 proposal; that PR merged without PEM.Both #5953 and #5969 are now merged. This refresh removes their prerequisite commits and retains main’s serial/name, validity and fingerprint readers and tests unchanged, including its unknown-context checks. The remaining regression checks PEM query/copy guards and the PS5 reader call shapes, context ownership and snapshot lifetime.
Static inspection of PPSA28002 confirms the four-argument PEM call, caller-owned buffer and 64-bit length; PPSA17330/PPSA28002 establish the serial/name call shapes. This is call-shape evidence, not console error precedence or exact PEM length semantics. Remaining uncertainty is recorded in library debt.
Overlap review: #6828 has merged. This refresh preserves its TLS transport implementation, transport tests and debt; the conflicts were resolved by retaining both test registrations and adding only the PEM debt entry. #7319 concerns TLS transport, not PEM reading. #6044 reorganizes test paths and registration; #6039 moves unrelated debt. Neither is a prerequisite for PEM.
Tested
Latest refresh: three linear commits on main
40393b0f959c, headf4630b2144. The debt conflict retains main’s updated TLS verify-option documentation and adds only the PEM limitation entry. All four SSL test executables and their library dependencies rebuilt;guest_ssl,guest_ssl_load,guest_ssl_ps5_readers,guest_ssl_transport_kernel, andguest_ssl_transport_netpass 5/5, zero skips, 1.92 seconds on Linux x86-64/GCC Release. Conventions and whitespace pass. No fresh full-runtime build, console or native-title validation is claimed. Earlier validation below remains historical.Arch Linux x86-64, Ryzen 9 7950X, Release, bundled source-built dependencies. Exact source
b5eeee0250dc2f5c9c338bb52ab2bf84f01520ccis three linear commits on mainccb0c092683aa9012769394d2f1a0b43b7b7e89a, with no merge commits.Full runtime
libsand all four SSL executables build.guest_ssl,guest_ssl_load,guest_ssl_ps5_readers,guest_ssl_transport_kernelandguest_ssl_transport_netpass, 5/5, no skips, 0.65 seconds. Conventions and whitespace checks pass. Both transport tests perform local TLS handshakes and data transfer through their respective guest socket tables.Validation report, CTest log. Earlier negative controls and patched-NID probes remain historical evidence, not rerun results for this refresh. No console, Windows or title runtime validation, title unblock or performance gain is claimed. Full hosted Linux/Windows builds require maintainer dispatch.
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 github-actions[bot] on 2026-10-15T18:09:10Z.
Progress report (
40393b0→f4630b2)📈 System libraries: 91.68% (+0.02%, +1 implemented functions)
✅ 1 implemented
sceSslGetPemImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T18:27:18Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libSceSsl.mdcore/libs/prx/libSceSsl/CMakeLists.txtcore/libs/tests/GuestSslLoad.cppImported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-18T17:51:13Z.
Parking this PR to free one of my 20 open slots for a demonstrated Crimson Spires startup crash fix. This SSL implementation has unit coverage, but no demonstrated title unblock or independent review yet, and console length/error-precedence semantics still need validation. The branch fix/ssl-ps5-reader-context and its evidence are preserved. I will reconsider reopening when a title exercises this path or independent validation strengthens the implementation; no source branch is being deleted.