feat(http): accept sceHttpSetAuthInfoCallback #1481

Merged
awake-devel merged 1 commit from upstream-pr/1481 into main 2026-10-09 08:03:15 +00:00
awake-devel commented 2026-10-08 08:54:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by awake-devel on 2026-10-08T08:54:54Z.


What

Adds sceHttpSetAuthInfoCallback (jf4TB2nUO40, libSceHttp). PPSA13427 imports it and no library exported it, so the relinked title failed to load on Linux (BIND_NOW).

No request reaches the network, so no server asks for authentication: the callback is accepted and never called, as sceHttpsSetSslCallback already does. The signature and callback type follow shadPS4; the id is not checked, as in the other libSceHttp setters. Adds HttpAuthInfoCallback to SceTypes.hpp, the function to the libSceHttp silent-stub entry and a signature-source entry to TechnicalDebt.

The other imports missing for PPSA13427 and PPSA12544 are left out: sceNpUnregisterNpReachabilityStateCallback is already on main (#1322), and sceRudpGetStatus and sceNpEntitlementAccessGetEntitlementKey came with #1436, now merged.

This PR was investigated and written by Claude Code (AI), and posted by me after review.

Tested

Arch Linux, GCC 16.2.1, Release, BUILD_TESTING=ON, GTX 1050 Ti (NVIDIA 580.178.04). Rebased onto main 406b5e1c, next to the redirect and cookie callbacks added by #1436; the results below are on 406b5e1c unless marked as from the earlier base bc1fbe81.

  • guest_http sets an auth info callback that aborts if called, then checks that reading a request still returns the network error without calling it. With the export removed the test no longer links (undefined sceHttpSetAuthInfoCallback) and ctest reports it Not Run; checked again on 406b5e1c.
  • ctest -j4: 482/482 pass, 0 failed, 0 skipped, the same set as unchanged main (406b5e1c).
  • VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -j2 -V: 482/482 pass; the same 7 validation errors as on main 406b5e1c (all VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605), none new.
  • tools/check_conventions.py --base 406b5e1c and tools/check_test_registration.py build: pass.
  • nm -D --defined-only build/core/libs/libs/libSceHttp.prx lists jf4TB2nUO40.
  • On bc1fbe81, PPSA13427 relinked with --module-dir localcacheps5 (#846 merged locally, local throwing stubs for the imports still missing from main): with main's libSceHttp it stops at undefined symbol: jf4TB2nUO40; with this change every import binds and the title runs into Vulkan device and swapchain creation.

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

https://claude.ai/code/session_01HeC9bA3n74TzJRYv9AgBE8

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4784306264 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1481). Originally posted by [awake-devel](https://github.com/awake-devel) on 2026-10-08T08:54:54Z. --- ### What Adds `sceHttpSetAuthInfoCallback` (`jf4TB2nUO40`, libSceHttp). PPSA13427 imports it and no library exported it, so the relinked title failed to load on Linux (`BIND_NOW`). No request reaches the network, so no server asks for authentication: the callback is accepted and never called, as `sceHttpsSetSslCallback` already does. The signature and callback type follow [shadPS4](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http.h); the `id` is not checked, as in the other libSceHttp setters. Adds `HttpAuthInfoCallback` to `SceTypes.hpp`, the function to the libSceHttp silent-stub entry and a signature-source entry to TechnicalDebt. The other imports missing for PPSA13427 and PPSA12544 are left out: `sceNpUnregisterNpReachabilityStateCallback` is already on `main` (#1322), and `sceRudpGetStatus` and `sceNpEntitlementAccessGetEntitlementKey` came with #1436, now merged. This PR was investigated and written by Claude Code (AI), and posted by me after review. ### Tested Arch Linux, GCC 16.2.1, Release, `BUILD_TESTING=ON`, GTX 1050 Ti (NVIDIA 580.178.04). Rebased onto `main` 406b5e1c, next to the redirect and cookie callbacks added by #1436; the results below are on 406b5e1c unless marked as from the earlier base bc1fbe81. - `guest_http` sets an auth info callback that aborts if called, then checks that reading a request still returns the network error without calling it. With the export removed the test no longer links (undefined `sceHttpSetAuthInfoCallback`) and ctest reports it Not Run; checked again on 406b5e1c. - `ctest -j4`: 482/482 pass, 0 failed, 0 skipped, the same set as unchanged `main` (406b5e1c). - `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -j2 -V`: 482/482 pass; the same 7 validation errors as on `main` 406b5e1c (all `VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605`), none new. - `tools/check_conventions.py --base 406b5e1c` and `tools/check_test_registration.py build`: pass. - `nm -D --defined-only build/core/libs/libs/libSceHttp.prx` lists `jf4TB2nUO40`. - On bc1fbe81, PPSA13427 relinked with `--module-dir localcacheps5` (#846 merged locally, local throwing stubs for the imports still missing from `main`): with `main`'s libSceHttp it stops at `undefined symbol: jf4TB2nUO40`; with this change every import binds and the title runs into Vulkan device and swapchain creation. ### 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) https://claude.ai/code/session_01HeC9bA3n74TzJRYv9AgBE8
github-actions[bot] commented 2026-10-08 19:24:26 +00:00 (Migrated from github.com)

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


Progress report (b858fdc → c91b306)

➖ System libraries: 84.76% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceHttp sceHttpSetAuthInfoCallback
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6067396443 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1481#issuecomment-6067396443). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T19:24:26Z. --- <!-- progress-report --> ### Progress report (b858fdc → c91b306) ➖ **System libraries**: 84.76% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceHttp | `sceHttpSetAuthInfoCallback` | </details>
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!1481
No description provided.