feat(libSceSsl): implement certificate query stubs #4089

Closed
jagrat04 wants to merge 1 commit from upstream-pr/4089 into main
jagrat04 commented 2026-10-11 23:00:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-11T23:00:22Z.


What

Implement certificate reader and context stubs in libSceSsl:

  • sceSslFreeSslCertName: returns success (0).
  • sceSslGetIssuerName: returns 0 (null name).
  • sceSslGetNameEntryCount: returns 0 (no entries).
  • sceSslGetNameEntryInfo: returns ERROR_NOT_FOUND (0x8095F004).
  • sceSslGetPem: returns ERROR_NOT_FOUND (0x8095F004).
  • sceSslGetSubjectName: returns 0 (null name).

Added test coverage for all 6 functions in core/libs/tests/GuestSsl.cpp and documented their silent stub behavior under Silent stubs in docs/dev/TechnicalDebt.md.

Tested

  • Windows 11, MinGW-w64 GCC 15.2.0.
  • python tools/check_conventions.py passed with 0 violations.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4823041508 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4089). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-11T23:00:22Z. --- ### What Implement certificate reader and context stubs in `libSceSsl`: - `sceSslFreeSslCertName`: returns success (`0`). - `sceSslGetIssuerName`: returns `0` (null name). - `sceSslGetNameEntryCount`: returns `0` (no entries). - `sceSslGetNameEntryInfo`: returns `ERROR_NOT_FOUND` (`0x8095F004`). - `sceSslGetPem`: returns `ERROR_NOT_FOUND` (`0x8095F004`). - `sceSslGetSubjectName`: returns `0` (null name). Added test coverage for all 6 functions in `core/libs/tests/GuestSsl.cpp` and documented their silent stub behavior under `Silent stubs` in `docs/dev/TechnicalDebt.md`. ### Tested - Windows 11, MinGW-w64 GCC 15.2.0. - `python tools/check_conventions.py` passed with 0 violations. ### 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 in TechnicalDebt - [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
github-actions[bot] commented 2026-10-11 23:06:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T23:06:16Z.


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
#4302 docs/dev/TechnicalDebt.md L49
#4326 docs/dev/TechnicalDebt.md L49
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114913107 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4089#issuecomment-6114913107). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T23:06:16Z. --- <!-- 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 | |---|---|---|---| | #4302 | `docs/dev/TechnicalDebt.md` [L49](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/docs/dev/TechnicalDebt.md#L49) | | | | #4326 | `docs/dev/TechnicalDebt.md` [L49](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/docs/dev/TechnicalDebt.md#L49) | | |
github-actions[bot] commented 2026-10-11 23:07:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T23:07:48Z.


Progress report (325e0a8 → 6b2fb17)

📈 System libraries: 86.65% (+0.18%, +6 implemented functions)

✅ 6 implemented
Library Name
libSceSsl sceSslFreeSslCertName
libSceSsl sceSslGetIssuerName
libSceSsl sceSslGetNameEntryCount
libSceSsl sceSslGetNameEntryInfo
libSceSsl sceSslGetPem
libSceSsl sceSslGetSubjectName
⚪ 6 behaviourally empty (constant return or throw)
Library Name
libSceSsl sceSslFreeSslCertName
libSceSsl sceSslGetIssuerName
libSceSsl sceSslGetNameEntryCount
libSceSsl sceSslGetNameEntryInfo
libSceSsl sceSslGetPem
libSceSsl sceSslGetSubjectName
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114925591 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4089#issuecomment-6114925591). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T23:07:48Z. --- <!-- progress-report --> ### Progress report (325e0a8 → 6b2fb17) 📈 **System libraries**: 86.65% (+0.18%, +6 implemented functions) <details> <summary>✅ 6 implemented</summary> | Library | Name | | - | - | | libSceSsl | `sceSslFreeSslCertName` | | libSceSsl | `sceSslGetIssuerName` | | libSceSsl | `sceSslGetNameEntryCount` | | libSceSsl | `sceSslGetNameEntryInfo` | | libSceSsl | `sceSslGetPem` | | libSceSsl | `sceSslGetSubjectName` | </details> <details> <summary>⚪ 6 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceSsl | `sceSslFreeSslCertName` | | libSceSsl | `sceSslGetIssuerName` | | libSceSsl | `sceSslGetNameEntryCount` | | libSceSsl | `sceSslGetNameEntryInfo` | | libSceSsl | `sceSslGetPem` | | libSceSsl | `sceSslGetSubjectName` | </details>
oneandonlydean commented 2026-10-12 08:27:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:27:53Z.


Closing: no title calls these six on main, and with the arguments unknown (all are declared (void)) the constant returns are guesses, so only the progress figure changes. Please reopen with the title ID and the log line where it stops at one of them.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6120574241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4089#issuecomment-6120574241). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-12T08:27:53Z. --- Closing: no title calls these six on main, and with the arguments unknown (all are declared `(void)`) the constant returns are guesses, so only the progress figure changes. Please reopen with the title ID and the log line where it stops at one of them.

Pull request closed

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!4089
No description provided.