fix(libSceHttp): return an empty CA list from sceHttpsGetCaList/sceHttpsFreeCaList #3497

Merged
LightStorm72 merged 2 commits from upstream-pr/3497 into main 2026-10-11 21:44:40 +00:00
LightStorm72 commented 2026-10-11 11:44:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T11:44:36Z.


What

Adds the missing sceHttpsGetCaList (NID gcUjwU3fa0M) and sceHttpsFreeCaList (NID 7WcNoAI9Zcw) exports to libSceHttp.

Without them, titles that import gcUjwU3fa0M fail at start-up with "unresolved ELF import gcUjwU3fa0M from libSceHttp.prx" (Windows error 127).

No TLS or CA store is emulated, so both functions report an empty list. After the null-pointer check they set certs = nullptr, certsNum = 0 and return 0. The behavior and struct layout follow shadPS4's libSceHttp (http.cpp / http.h) and were re-implemented here, not copied.

Related to #2591. #3356

Tested

Road of Death (PPSA07286) converts and starts past the import with this change (Windows). It also needs the libSceXml fix from #2591, which is a separate change.

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 (Claude); I reviewed and tested the change myself.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4818804610 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3497). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-11T11:44:36Z. --- ### What Adds the missing `sceHttpsGetCaList` (NID `gcUjwU3fa0M`) and `sceHttpsFreeCaList` (NID `7WcNoAI9Zcw`) exports to libSceHttp. Without them, titles that import `gcUjwU3fa0M` fail at start-up with "unresolved ELF import gcUjwU3fa0M from libSceHttp.prx" (Windows error 127). No TLS or CA store is emulated, so both functions report an empty list. After the null-pointer check they set `certs = nullptr`, `certsNum = 0` and return 0. The behavior and struct layout follow shadPS4's libSceHttp (`http.cpp` / `http.h`) and were re-implemented here, not copied. Related to #2591. #3356 ### Tested Road of Death (PPSA07286) converts and starts past the import with this change (Windows). It also needs the libSceXml fix from #2591, which is a separate change. ### 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 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 (Claude); I reviewed and tested the change myself.
MarcZX10 commented 2026-10-11 11:50:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T11:50:50Z.


The Tested section still contains the placeholder <game name(s)>. Please replace it with the tested title/build and the exact start result, or remove that claim if the title was not run. As written, readers cannot reproduce the reported validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108718941 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3497#issuecomment-6108718941). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T11:50:50Z. --- The `Tested` section still contains the placeholder `<game name(s)>`. Please replace it with the tested title/build and the exact start result, or remove that claim if the title was not run. As written, readers cannot reproduce the reported validation.
LightStorm72 commented 2026-10-11 11:55:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T11:55:43Z.


@MarcZX100 thanks, I edited it

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108757471 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3497#issuecomment-6108757471). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-11T11:55:43Z. --- @MarcZX100 thanks, I edited it
github-actions[bot] commented 2026-10-11 12:02:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T12:02:13Z.


Progress report (59559c3 → 7ca6b63)

📈 System libraries: 86.0% (+0.01%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceHttp sceHttpsFreeCaList
libSceHttp sceHttpsGetCaList
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108808646 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3497#issuecomment-6108808646). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T12:02:13Z. --- <!-- progress-report --> ### Progress report (59559c3 → 7ca6b63) 📈 **System libraries**: 86.0% (+0.01%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceHttp | `sceHttpsFreeCaList` | | libSceHttp | `sceHttpsGetCaList` | </details>
adriadam10 commented 2026-10-11 12:04:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T12:04:02Z.


Checked the NIDs (gcUjwU3fa0M, 7WcNoAI9Zcw), signatures and the { void* certs; int certsNum; } layout against shadPS4 (http.cpp, ssl.h) and aerolib; build and the libSceHttp ctest pass on current main.

Added on top (own commit):

  • TechnicalDebt line now also says the stubs don't validate http_ctx_id/initialisation (shadPS4 does) and that sceHttpsFreeCaList nulls certs (shadPS4 leaves it).

The red conventions job is a checkout failure on main (No url found for submodule path '3rdparty/imgui'), not this PR; merging once it is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108823586 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3497#issuecomment-6108823586). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T12:04:02Z. --- Checked the NIDs (`gcUjwU3fa0M`, `7WcNoAI9Zcw`), signatures and the `{ void* certs; int certsNum; }` layout against shadPS4 (`http.cpp`, `ssl.h`) and aerolib; build and the libSceHttp ctest pass on current main. Added on top (own commit): - TechnicalDebt line now also says the stubs don't validate `http_ctx_id`/initialisation (shadPS4 does) and that `sceHttpsFreeCaList` nulls `certs` (shadPS4 leaves it). The red `conventions` job is a checkout failure on main (`No url found for submodule path '3rdparty/imgui'`), not this PR; merging once it is green.
LightStorm72 commented 2026-10-11 13:27:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T13:27:31Z.


@adriadam10 Thanks for checking everything! I'll wait for the conventions check to be fixed and rerun before merging. Let me know if there's anything else I need to change on my side.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109517200 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3497#issuecomment-6109517200). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-11T13:27:31Z. --- @adriadam10 Thanks for checking everything! I'll wait for the `conventions` check to be fixed and rerun before merging. Let me know if there's anything else I need to change on my side.
github-actions[bot] commented 2026-10-11 17:27:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T17:27:51Z.


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
#3826 docs/dev/TechnicalDebt.md L44
#3994 docs/dev/TechnicalDebt.md L44
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111702175 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3497#issuecomment-6111702175). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T17:27:51Z. --- <!-- 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 | |---|---|---|---| | #3826 | `docs/dev/TechnicalDebt.md` [L44](https://github.com/boykopovar/AnyPS5/blob/41f013f664f6ec36a8111f2c6f9772b76e562288/docs/dev/TechnicalDebt.md#L44) | | | | #3994 | `docs/dev/TechnicalDebt.md` [L44](https://github.com/boykopovar/AnyPS5/blob/41f013f664f6ec36a8111f2c6f9772b76e562288/docs/dev/TechnicalDebt.md#L44) | | |
adriadam10 commented 2026-10-11 21:29:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:29:06Z.


Rebased onto current main (clean, no changes to the diff). The red conventions job was the checkout failure from the stray 3rdparty/imgui gitlink, removed on main in fab9f576a; the rebase refreshes the merge ref. libSceHttp build and ctest pass; merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6113977499 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3497#issuecomment-6113977499). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:29:06Z. --- Rebased onto current main (clean, no changes to the diff). The red `conventions` job was the checkout failure from the stray `3rdparty/imgui` gitlink, removed on main in fab9f576a; the rebase refreshes the merge ref. libSceHttp build and ctest pass; merging once CI is green.
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!3497
No description provided.