feat(libSceSsl): record connection verify options, minimum version and ALPN #5911

Merged
BigDipsey merged 1 commit from upstream-pr/5911 into main 2026-10-16 19:54:24 +00:00
BigDipsey commented 2026-10-14 15:30:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BigDipsey on 2026-10-14T15:30:32Z.


What

Implements sceSslEnableVerifyOption, sceSslDisableVerifyOption, sceSslSetMinSslVersion, sceSslSetAlpn and sceSslGetAlpnSelected. The technical debt kept them throwing because their signatures were unknown; they now follow SharpProspero, the source already used for the other connection functions.

The options, minimum version and ALPN list are recorded on the connection like the verification callback; nothing reads them until sceSslConnect has a transport. sceSslGetAlpnSelected returns null because no handshake completes. Unknown connections and terminated contexts throw; versions outside 0 (none) to 5 (TLS 1.2) and a null ALPN list throw. The open questions (initial options, TLS 1.3, ALPN format) are recorded in the libSceSsl technical debt.

The PPSA07411 functional debt entry moves to libSceJson2.md, now its first linked library.

Tested

Ubuntu 24.04, GCC 13: guest_ssl (extended) and guest_ssl_load pass; tools/check_conventions.py passes. Not tested with a title.

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
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

https://claude.ai/code/session_01SaSmTp7ZiSYcnUMTDVa7hZ

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4860269747 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5911). Originally posted by [BigDipsey](https://github.com/BigDipsey) on 2026-10-14T15:30:32Z. --- ### What Implements sceSslEnableVerifyOption, sceSslDisableVerifyOption, sceSslSetMinSslVersion, sceSslSetAlpn and sceSslGetAlpnSelected. The technical debt kept them throwing because their signatures were unknown; they now follow [SharpProspero](https://github.com/SvenGDK/SharpProspero/blob/60977b29103452b9681ae10c7a9011d44965bf16/src/SharpProspero/Interop/Net/Http.cs), the source already used for the other connection functions. The options, minimum version and ALPN list are recorded on the connection like the verification callback; nothing reads them until `sceSslConnect` has a transport. `sceSslGetAlpnSelected` returns null because no handshake completes. Unknown connections and terminated contexts throw; versions outside 0 (none) to 5 (TLS 1.2) and a null ALPN list throw. The open questions (initial options, TLS 1.3, ALPN format) are recorded in the libSceSsl technical debt. The PPSA07411 functional debt entry moves to libSceJson2.md, now its first linked library. ### Tested Ubuntu 24.04, GCC 13: `guest_ssl` (extended) and `guest_ssl_load` pass; `tools/check_conventions.py` passes. Not tested with a title. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01SaSmTp7ZiSYcnUMTDVa7hZ
github-actions[bot] commented 2026-10-14 17:07:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T17:07:46Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 5953 docs/dev/debt/libSceSsl.md L7-13
PR 5969 core/libs/prx/libSceSsl/Export.cpp L520-525
docs/dev/debt/libSceSsl.md L5-13
PR 5986 docs/dev/debt/libSceJson2.md L12-13
PR 6039 docs/dev/debt/libSceSsl.md L9-13
PR 6126 docs/dev/debt/libSceSsl.md L9-13
PR 6511 core/libs/prx/libSceSsl/Export.cpp L520-525
docs/dev/debt/libSceSsl.md L5-13
PR 6828 core/libs/prx/libSceSsl/Export.cpp L166
docs/dev/debt/libSceSsl.md L8-13

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 6044 core/libs/tests/GuestSsl.cpp
PR 6447 docs/dev/debt/libSceJson2.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6173901090 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5911#issuecomment-6173901090). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T17:07:46Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 5953](https://www.github.com/boykopovar/AnyPS5/pull/5953) | `docs/dev/debt/libSceSsl.md` [L7-13](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceSsl.md#L7-L13) | | | | [PR 5969](https://www.github.com/boykopovar/AnyPS5/pull/5969) | `core/libs/prx/libSceSsl/Export.cpp` [L520-525](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/core/libs/prx/libSceSsl/Export.cpp#L520-L525)<br>`docs/dev/debt/libSceSsl.md` [L5-13](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceSsl.md#L5-L13) | | | | [PR 5986](https://www.github.com/boykopovar/AnyPS5/pull/5986) | `docs/dev/debt/libSceJson2.md` [L12-13](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceJson2.md#L12-L13) | | | | [PR 6039](https://www.github.com/boykopovar/AnyPS5/pull/6039) | `docs/dev/debt/libSceSsl.md` [L9-13](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceSsl.md#L9-L13) | | | | [PR 6126](https://www.github.com/boykopovar/AnyPS5/pull/6126) | `docs/dev/debt/libSceSsl.md` [L9-13](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceSsl.md#L9-L13) | | | | [PR 6511](https://www.github.com/boykopovar/AnyPS5/pull/6511) | `core/libs/prx/libSceSsl/Export.cpp` [L520-525](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/core/libs/prx/libSceSsl/Export.cpp#L520-L525)<br>`docs/dev/debt/libSceSsl.md` [L5-13](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceSsl.md#L5-L13) | | | | [PR 6828](https://www.github.com/boykopovar/AnyPS5/pull/6828) | `core/libs/prx/libSceSsl/Export.cpp` [L166](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/core/libs/prx/libSceSsl/Export.cpp#L166)<br>`docs/dev/debt/libSceSsl.md` [L8-13](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceSsl.md#L8-L13) | | | 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 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestSsl.cpp` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `docs/dev/debt/libSceJson2.md` |
github-actions[bot] commented 2026-10-16 18:38:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T18:38:37Z.


Progress report (a453108 → f708a73)

📈 System libraries: 88.84% (+0.13%, +5 implemented functions)

✅ 5 implemented
Library Name
libSceSsl sceSslDisableVerifyOption
libSceSsl sceSslEnableVerifyOption
libSceSsl sceSslGetAlpnSelected
libSceSsl sceSslSetAlpn
libSceSsl sceSslSetMinSslVersion
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222280145 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5911#issuecomment-6222280145). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T18:38:37Z. --- <!-- progress-report --> ### Progress report (a453108 → f708a73) 📈 **System libraries**: 88.84% (+0.13%, +5 implemented functions) <details> <summary>✅ 5 implemented</summary> | Library | Name | | - | - | | libSceSsl | `sceSslDisableVerifyOption` | | libSceSsl | `sceSslEnableVerifyOption` | | libSceSsl | `sceSslGetAlpnSelected` | | libSceSsl | `sceSslSetAlpn` | | libSceSsl | `sceSslSetMinSslVersion` | </details>
adriadam10 commented 2026-10-16 18:40:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T18:40:37Z.


Checked the signatures and the SceSslVersion range (0-5) against SharpProspero at the commit cited, guest_ssl/guest_ssl_load pass locally and guest_ssl fails without the change; debt entries are accurate. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222313336 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5911#issuecomment-6222313336). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T18:40:37Z. --- Checked the signatures and the `SceSslVersion` range (0-5) against SharpProspero at the commit cited, `guest_ssl`/`guest_ssl_load` pass locally and `guest_ssl` fails without the change; debt entries are accurate. Merging.
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!5911
No description provided.