feat(libSceHttp): implement auth-enabled option state #9405

Merged
MarcZX10 merged 2 commits from upstream-pr/9405 into main 2026-10-23 01:22:37 +00:00
MarcZX10 commented 2026-10-21 20:53:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T20:53:07Z.


What

Implement sceHttpSetAuthEnabled and sceHttpGetAuthEnabled as stateful HTTP object options. The getter signature follows the SDK headers; the setter stores the value in the existing per-object option table, and connections and requests inherit it from their parent at creation. The disabled default and option validation behavior follow the neighboring option model and remain unverified on PS5 hardware. This offline backend does not send requests, so the value only affects getter readback. Cookie-enabled state remains in #9413, sequenced after this PR because the branches modify shared option and test files.

Tested

  • Built guest_http_options_tests successfully with CMake/Ninja.
  • The normal ctest invocation aborts before main on this host: AnyPS5 requires Zen 2 CPU extensions that the Intel Xeon E5-1620 v2 host lacks.
  • Compiled the changed HTTP export and option sources with GuestHttpOptions.cpp and a temporary throwing-stub shim; the executable passed (HTTP option tests passed).
  • python3 tools/check_conventions.py --base upstream/main passed.
  • python3 tools/pr_overlap.py --branch codex/rebase-9405 --repo boykopovar/AnyPS5 reports the intentional shared option/test hunks with #9413 and cannot compare #8357, #8620, or #9229 because those branches conflict with main. I manually inspected their changed exports: memory-pool statistics, cookie limits, and proxy handling are distinct from the auth-enabled exports. #9413 now lists Depends on: #9405.
  • git diff --check passed.
  • After removing the unrelated cookie getter implementation, c++ -std=c++20 -fsyntax-only -I core/libs core/libs/prx/libSceHttp/Export.cpp passed.

Checklist

  • Based on current main (0c6a5bd593); 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:4958207567 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9405). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T20:53:07Z. --- ### What Implement `sceHttpSetAuthEnabled` and `sceHttpGetAuthEnabled` as stateful HTTP object options. The getter signature follows the SDK headers; the setter stores the value in the existing per-object option table, and connections and requests inherit it from their parent at creation. The disabled default and option validation behavior follow the neighboring option model and remain unverified on PS5 hardware. This offline backend does not send requests, so the value only affects getter readback. Cookie-enabled state remains in #9413, sequenced after this PR because the branches modify shared option and test files. ### Tested - Built `guest_http_options_tests` successfully with CMake/Ninja. - The normal `ctest` invocation aborts before `main` on this host: AnyPS5 requires Zen 2 CPU extensions that the Intel Xeon E5-1620 v2 host lacks. - Compiled the changed HTTP export and option sources with `GuestHttpOptions.cpp` and a temporary throwing-stub shim; the executable passed (`HTTP option tests passed`). - `python3 tools/check_conventions.py --base upstream/main` passed. - `python3 tools/pr_overlap.py --branch codex/rebase-9405 --repo boykopovar/AnyPS5` reports the intentional shared option/test hunks with #9413 and cannot compare #8357, #8620, or #9229 because those branches conflict with `main`. I manually inspected their changed exports: memory-pool statistics, cookie limits, and proxy handling are distinct from the auth-enabled exports. #9413 now lists `Depends on: #9405`. - `git diff --check` passed. - After removing the unrelated cookie getter implementation, `c++ -std=c++20 -fsyntax-only -I core/libs core/libs/prx/libSceHttp/Export.cpp` passed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main` (`0c6a5bd593`); 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 20:53:57 +00:00 (Migrated from github.com)

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


Progress report (8b3e398 → 0aac538)

📈 System libraries: 43.24% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceHttp sceHttpGetAuthEnabled
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6326324659 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9405#issuecomment-6326324659). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T20:53:57Z. --- <!-- progress-report --> ### Progress report (8b3e398 → 0aac538) 📈 **System libraries**: 43.24% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceHttp | `sceHttpGetAuthEnabled` | </details>
jotitadev commented 2026-10-21 23:34:01 +00:00 (Migrated from github.com)

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

Review: COMMENTED


First execution of this test. The description notes the author's Linux host lacks AVX2, so ctest could not run there; this is the first actual run of guest_http_options for this change.

Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON, full build. Head 9ca57cf01 (a rebase of the validated 92776eb46 onto main a6dcea927, same diff). Validated at 92776eb46 merged onto main 0c6a5bd59.

  • Build ok. guest_http_options passes.
  • Restoring libSceHttp/Export.cpp and libSceHttp/src/Options.hpp to main and keeping the test aborts it with sceHttpGetAuthEnabled not implemented, so the test covers the change.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607512060 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9405#pullrequestreview-5607512060). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-21T23:34:01Z. **Review:** COMMENTED --- First execution of this test. The description notes the author's Linux host lacks AVX2, so `ctest` could not run there; this is the first actual run of `guest_http_options` for this change. Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, `BUILD_TESTING=ON`, full build. Head `9ca57cf01` (a rebase of the validated `92776eb46` onto `main` `a6dcea927`, same diff). Validated at `92776eb46` merged onto `main` `0c6a5bd59`. - Build ok. `guest_http_options` passes. - Restoring `libSceHttp/Export.cpp` and `libSceHttp/src/Options.hpp` to `main` and keeping the test aborts it with `sceHttpGetAuthEnabled not implemented`, so the test covers the change. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
xXPBSXx commented 2026-10-21 23:59:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T23:59:48Z.


Independent Windows run of this PR (data only).

Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against main is clean. I built only guest_http_options_tests; ctest -N -R guest_http_options lists exactly one test.

PR head tested: 9ca57cf01ad7691d547a85517a88f973383674a0.

Results (3 runs each):

  • PR head: guest_http_options passes 3/3.
  • Baseline: I kept the PR's test and replaced only these production files: core/libs/prx/libSceHttp/Export.cpp, core/libs/prx/libSceHttp/src/Options.hpp with the version from the PR's merge base (a6dcea9279), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.

GPU: the run output has no Selected GPU line; no GPU claim is made.

Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329276466 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9405#issuecomment-6329276466). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-21T23:59:48Z. --- Independent Windows run of this PR (data only). **Environment:** Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against `main` is clean. I built only `guest_http_options_tests`; `ctest -N -R guest_http_options` lists exactly one test. **PR head tested:** `9ca57cf01ad7691d547a85517a88f973383674a0`. **Results (3 runs each):** - PR head: `guest_http_options` passes 3/3. - Baseline: I kept the PR's test and replaced only these production files: `core/libs/prx/libSceHttp/Export.cpp`, `core/libs/prx/libSceHttp/src/Options.hpp` with the version from the PR's merge base (`a6dcea9279`), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards. **GPU:** the run output has no `Selected GPU` line; no GPU claim is made. **Not run:** other platforms, the other tests in the same family, the full repository CTest, and any title or console run. AI-assisted (Claude Code).
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!9405
No description provided.