feat(libSceHttp): accept the SSL version, SSL error and redirect and cookie callback calls #1206

Merged
CnRJay merged 1 commit from upstream-pr/1206 into main 2026-10-08 09:38:43 +00:00
CnRJay commented 2026-10-07 17:34:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-07T17:34:50Z.


What

Implements sceHttpsSetSslVersion, sceHttpsGetSslError, sceHttpSetRedirectCallback and sceHttpSetCookieRecvCallback. Before this change they were declared without parameters and threw (PPSA23566 imports).

No request reaches the network, so:

  • the SSL version has no TLS connection to configure;
  • the redirect and cookie-receive callbacks are accepted and never called;
  • sceHttpsGetSslError reports error 0 with detail 0.

A null errNum or detail returns SCE_HTTP_ERROR_INVALID_VALUE, as sceHttpGetLastErrno does. Signatures follow shadPS4. Adds the HttpRedirectCallback and HttpCookieRecvCallback types to SceTypes.hpp. TechnicalDebt changes:

  • removes the four functions from the PPSA23566 unknown-signature entry;
  • adds them to the libSceHttp silent-stub entry;
  • adds a signature-source entry for them.

Tested

Ubuntu 24.04, GCC 13.3, Release build. guest_http passes with new checks: each setter returns 0, sceHttpsGetSslError writes 0/0, and a null errNum or detail returns INVALID_VALUE. The full ctest run also passes, except agc_driver_flip, which failed only under -j8 and passes when run alone.
Also checked on Windows 11 (MinGW GCC Release build): guest_http passes.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4776209279 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1206). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-07T17:34:50Z. --- ### What Implements `sceHttpsSetSslVersion`, `sceHttpsGetSslError`, `sceHttpSetRedirectCallback` and `sceHttpSetCookieRecvCallback`. Before this change they were declared without parameters and threw (PPSA23566 imports). No request reaches the network, so: - the SSL version has no TLS connection to configure; - the redirect and cookie-receive callbacks are accepted and never called; - `sceHttpsGetSslError` reports error 0 with detail 0. A null `errNum` or `detail` returns `SCE_HTTP_ERROR_INVALID_VALUE`, as `sceHttpGetLastErrno` does. Signatures follow shadPS4. Adds the `HttpRedirectCallback` and `HttpCookieRecvCallback` types to `SceTypes.hpp`. TechnicalDebt changes: - removes the four functions from the PPSA23566 unknown-signature entry; - adds them to the libSceHttp silent-stub entry; - adds a signature-source entry for them. ### Tested Ubuntu 24.04, GCC 13.3, Release build. `guest_http` passes with new checks: each setter returns 0, `sceHttpsGetSslError` writes 0/0, and a null `errNum` or `detail` returns `INVALID_VALUE`. The full `ctest` run also passes, except `agc_driver_flip`, which failed only under `-j8` and passes when run alone. Also checked on Windows 11 (MinGW GCC Release build): `guest_http` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-07 17:41:13 +00:00 (Migrated from github.com)

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


Progress report (ac951f8 → 3ed954f)

📈 System libraries: 85.37% (+0.14%, +4 implemented functions)

✅ 4 implemented
Library Name
libSceHttp sceHttpSetCookieRecvCallback
libSceHttp sceHttpSetRedirectCallback
libSceHttp sceHttpsGetSslError
libSceHttp sceHttpsSetSslVersion
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6043438613 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1206#issuecomment-6043438613). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-07T17:41:13Z. --- <!-- progress-report --> ### Progress report (ac951f8 → 3ed954f) 📈 **System libraries**: 85.37% (+0.14%, +4 implemented functions) <details> <summary>✅ 4 implemented</summary> | Library | Name | | - | - | | libSceHttp | `sceHttpSetCookieRecvCallback` | | libSceHttp | `sceHttpSetRedirectCallback` | | libSceHttp | `sceHttpsGetSslError` | | libSceHttp | `sceHttpsSetSslVersion` | </details>
adriadam10 commented 2026-10-08 09:09:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T09:09:18Z.


Checked the signatures against shadPS4 and SharpProspero (they agree), the callback typedefs against shadPS4, and the TechnicalDebt entries (silent stub, signature source, PPSA23566 line removed). guest_http fails to build without the change and passes with it; full ctest passes on the rebased head, CI is green.
Only a mechanical conflict in docs/dev/TechnicalDebt.md; rebased onto current main. Merging once CI is green on the rebased head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6056571765 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1206#issuecomment-6056571765). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T09:09:18Z. --- Checked the signatures against shadPS4 and SharpProspero (they agree), the callback typedefs against shadPS4, and the TechnicalDebt entries (silent stub, signature source, PPSA23566 line removed). `guest_http` fails to build without the change and passes with it; full ctest passes on the rebased head, CI is green. Only a mechanical conflict in `docs/dev/TechnicalDebt.md`; rebased onto current `main`. Merging once CI is green on the rebased head.
github-actions[bot] commented 2026-10-08 09:18:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T09:18:18Z.


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
#1481 core/libs/SceTypes.hpp L1221
core/libs/tests/GuestHttp.cpp L25
docs/dev/TechnicalDebt.md L35, L176
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6056717146 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1206#issuecomment-6056717146). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T09:18:18Z. --- <!-- 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 | |---|---|---|---| | #1481 | `core/libs/SceTypes.hpp` [L1221](https://github.com/boykopovar/AnyPS5/blob/96614df544970e4754a9b84c2dc8ce6780e3fa01/core/libs/SceTypes.hpp#L1221)<br>`core/libs/tests/GuestHttp.cpp` [L25](https://github.com/boykopovar/AnyPS5/blob/96614df544970e4754a9b84c2dc8ce6780e3fa01/core/libs/tests/GuestHttp.cpp#L25)<br>`docs/dev/TechnicalDebt.md` [L35](https://github.com/boykopovar/AnyPS5/blob/96614df544970e4754a9b84c2dc8ce6780e3fa01/docs/dev/TechnicalDebt.md#L35), [L176](https://github.com/boykopovar/AnyPS5/blob/96614df544970e4754a9b84c2dc8ce6780e3fa01/docs/dev/TechnicalDebt.md#L176) | | |
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!1206
No description provided.