feat(libSceSsl): implement full-buffer send and receive #9407

Merged
MarcZX10 merged 1 commit from upstream-pr/9407 into main 2026-10-22 23:58:15 +00:00
MarcZX10 commented 2026-10-21 21:00:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T21:00:39Z.


What

Implements sceSslSend and sceSslRecv as the documented no-flags, full-buffer counterparts of sceSslWrite and sceSslRead. Extends the local TLS transport test to send the request through sceSslSend and verify sceSslRecv fills a partial remainder and returns 0 at end of stream. Leaves sceSslReuseConnection unimplemented because its session-resumption behavior still lacks a reliable contract.

Tested

Linux: cmake --build /tmp/AnyPS5-ssl-send-recv-build --target guest_ssl_tests guest_ssl_transport_tests --parallel 4 passed. ctest --test-dir /tmp/AnyPS5-ssl-send-recv-build -R '^guest_ssl($|_transport_)' --output-on-failure could not execute the tests: this host's Intel Xeon E5-1620 v2 lacks AVX2, FMA, BMI1, BMI2, LZCNT and MOVBE required by AnyPS5. python3 tools/check_conventions.py --base upstream/main, python3 tools/pr_overlap.py --branch feat/ssl-send-recv, and git diff --check passed. No PS5 hardware run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4958294657 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9407). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T21:00:39Z. --- ### What Implements `sceSslSend` and `sceSslRecv` as the documented no-flags, full-buffer counterparts of `sceSslWrite` and `sceSslRead`. Extends the local TLS transport test to send the request through `sceSslSend` and verify `sceSslRecv` fills a partial remainder and returns 0 at end of stream. Leaves `sceSslReuseConnection` unimplemented because its session-resumption behavior still lacks a reliable contract. ### Tested Linux: `cmake --build /tmp/AnyPS5-ssl-send-recv-build --target guest_ssl_tests guest_ssl_transport_tests --parallel 4` passed. `ctest --test-dir /tmp/AnyPS5-ssl-send-recv-build -R '^guest_ssl($|_transport_)' --output-on-failure` could not execute the tests: this host's Intel Xeon E5-1620 v2 lacks AVX2, FMA, BMI1, BMI2, LZCNT and MOVBE required by AnyPS5. `python3 tools/check_conventions.py --base upstream/main`, `python3 tools/pr_overlap.py --branch feat/ssl-send-recv`, and `git diff --check` passed. No PS5 hardware run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-21 21:01:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T21:01:21Z.


Progress report (8b3e398 → 26ea36f)

📈 System libraries: 43.25% (+0.02%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceSsl sceSslRecv
libSceSsl sceSslSend
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6326461901 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9407#issuecomment-6326461901). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T21:01:21Z. --- <!-- progress-report --> ### Progress report (8b3e398 → 26ea36f) 📈 **System libraries**: 43.25% (+0.02%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceSsl | `sceSslRecv` | | libSceSsl | `sceSslSend` | </details>
jotitadev commented 2026-10-21 23:34:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-21T23:34:07Z.

Review: COMMENTED


First execution of the libSceSsl transport tests. The description notes the host lacks AVX2, so ctest could not run there.

Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON, full build. Head 7116859d0 (a rebase of the validated 28b231b08, same diff). Validated at 28b231b08 on its own base.

  • Build ok. All five libSceSsl tests run and pass: guest_ssl, guest_ssl_load, guest_ssl_transport_kernel, guest_ssl_transport_net and guest_ssl_ps5_readers (the TLS 1.2 client path over Mbed TLS executes end to end).
  • One note on coverage: restoring libSceSsl/Export.cpp to the base and keeping the tests leaves all five green, so the transport tests do not isolate the new sceSslSend/sceSslRecv (they drive sceSslRead/sceSslWrite). So this confirms the suite executes and passes, not a red/green for the two new exports.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607512650 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9407#pullrequestreview-5607512650). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-21T23:34:07Z. **Review:** COMMENTED --- First execution of the libSceSsl transport tests. The description notes the host lacks AVX2, so `ctest` could not run there. Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, `BUILD_TESTING=ON`, full build. Head `7116859d0` (a rebase of the validated `28b231b08`, same diff). Validated at `28b231b08` on its own base. - Build ok. All five libSceSsl tests run and pass: `guest_ssl`, `guest_ssl_load`, `guest_ssl_transport_kernel`, `guest_ssl_transport_net` and `guest_ssl_ps5_readers` (the TLS 1.2 client path over Mbed TLS executes end to end). - One note on coverage: restoring `libSceSsl/Export.cpp` to the base and keeping the tests leaves all five green, so the transport tests do not isolate the new `sceSslSend`/`sceSslRecv` (they drive `sceSslRead`/`sceSslWrite`). So this confirms the suite executes and passes, not a red/green for the two new exports. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9407
No description provided.