Skip to content

feat(ssl): implement context-scoped PS5 certificate PEM reading - #6511

Merged
adriadam10 merged 3 commits into
boykopovar:mainfrom
JJenkx:fix/ssl-ps5-reader-context
Oct 19, 2026
Merged

adriadam10 merged 3 commits into
boykopovar:mainfrom
JJenkx:fix/ssl-ps5-reader-context

Conversation

@JJenkx

@JJenkx JJenkx commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What

Implement sceSslGetPem with the PS5 context-first four-argument call: context, certificate, caller-owned destination and in/out size_t length. 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, head f4630b2144. 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, and guest_ssl_transport_net pass 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 b5eeee0250dc2f5c9c338bb52ab2bf84f01520cc is three linear commits on main ccb0c092683aa9012769394d2f1a0b43b7b7e89a, with no merge commits.

Full runtime libs and all four SSL executables build. guest_ssl, guest_ssl_load, guest_ssl_ps5_readers, guest_ssl_transport_kernel and guest_ssl_transport_net pass, 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

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Progress report (40393b0 → f4630b2)

📈 System libraries: 91.68% (+0.02%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceSsl sceSslGetPem

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 6039 docs/dev/debt/libSceSsl.md
PR 6044 core/libs/prx/libSceSsl/CMakeLists.txt
core/libs/tests/GuestSslLoad.cpp

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 16, 2026
@JJenkx
JJenkx force-pushed the fix/ssl-ps5-reader-context branch from 358e3c4 to 30633f3 Compare October 16, 2026 20:09
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 16, 2026
@JJenkx
JJenkx force-pushed the fix/ssl-ps5-reader-context branch from 30633f3 to 418d2fc Compare October 17, 2026 00:01
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 17, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 18, 2026
@JJenkx
JJenkx force-pushed the fix/ssl-ps5-reader-context branch from 418d2fc to d21e1a6 Compare October 18, 2026 04:26
@JJenkx JJenkx changed the title fix(ssl): use PS5 context-scoped certificate reader arguments feat(ssl): implement context-scoped PS5 certificate PEM reading Oct 18, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 18, 2026
@JJenkx
JJenkx force-pushed the fix/ssl-ps5-reader-context branch from d21e1a6 to b5eeee0 Compare October 18, 2026 06:09
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 18, 2026
@JJenkx

JJenkx commented Oct 18, 2026

Copy link
Copy Markdown
Contributor Author

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.

@JJenkx JJenkx closed this Oct 18, 2026
@JJenkx JJenkx reopened this Oct 19, 2026
@JJenkx
JJenkx force-pushed the fix/ssl-ps5-reader-context branch from b5eeee0 to f4630b2 Compare October 19, 2026 02:20
@adriadam10 adriadam10 self-assigned this Oct 19, 2026
@adriadam10
adriadam10 merged commit ba63d41 into boykopovar:main Oct 19, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants