feat(libSceLibreSsl): implement SSL library init #11662

Merged
LordVersA merged 2 commits from upstream-pr/11662 into main 2026-11-04 20:00:18 +00:00
LordVersA commented 2026-10-27 01:36:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LordVersA on 2026-10-27T01:36:04Z.


What

Implement SSL_library_init with LibreSSL-compatible behavior: every call returns 1. Add repeat-call coverage and document that console behavior remains unverified.

Tested

  • macOS: python3 tools/check_conventions.py --base origin/main
  • macOS: c++ -std=c++20 -fsyntax-only -Icore/libs core/libs/tests/GuestLibreSslVersion.cpp
  • tools/progress.py: libSceLibreSsl improved from 77 implemented exports to 78
  • Full build not run: configuration requires VulkanHeaders, which is not installed locally

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; silent stubs are listed under Silent stubs
  • No notes, investigation .md files or images added to the repository
  • 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:5027237991 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11662). Originally posted by [LordVersA](https://github.com/LordVersA) on 2026-10-27T01:36:04Z. --- ### What Implement `SSL_library_init` with LibreSSL-compatible behavior: every call returns 1. Add repeat-call coverage and document that console behavior remains unverified. ### Tested - macOS: `python3 tools/check_conventions.py --base origin/main` - macOS: `c++ -std=c++20 -fsyntax-only -Icore/libs core/libs/tests/GuestLibreSslVersion.cpp` - `tools/progress.py`: libSceLibreSsl improved from 77 implemented exports to 78 - Full build not run: configuration requires VulkanHeaders, which is not installed locally ### 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; silent stubs are listed under Silent stubs - [x] No notes, investigation `.md` files or images added to the repository - [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
MarcZX10 commented 2026-10-27 01:37:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T01:37:03Z.

Review: CHANGES_REQUESTED


The implementation itself is a reasonable LibreSSL-compatible no-op: SSL_library_init returns 1 on every call, and the regression test checks repeat calls. I verified the API declaration, test registration, and local conventions/whitespace checks; I did not run the linked test binary locally because no built target is available in the preserved worktrees.

The hosted conventions check fails because the PR template says AI-assisted: ye; the required answer is exactly yes or no. Please correct that field and rerun the check. The local non-isolated convention command passed, but the CI command uses python3 -I, which detects the malformed template answer.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5661260259 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11662#pullrequestreview-5661260259). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T01:37:03Z. **Review:** CHANGES_REQUESTED --- The implementation itself is a reasonable LibreSSL-compatible no-op: `SSL_library_init` returns 1 on every call, and the regression test checks repeat calls. I verified the API declaration, test registration, and local conventions/whitespace checks; I did not run the linked test binary locally because no built target is available in the preserved worktrees. The hosted conventions check fails because the PR template says `AI-assisted: ye`; the required answer is exactly `yes` or `no`. Please correct that field and rerun the check. The local non-isolated convention command passed, but the CI command uses `python3 -I`, which detects the malformed template answer.
MarcZX10 commented 2026-10-27 01:40:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T01:40:46Z.

Review: APPROVED


The template answer is now corrected, and the latest hosted conventions, intake, and labels checks pass. I rechecked the one-line implementation, API declaration, repeated-call test registration, whitespace check, and compiled the changed test translation unit with -fsyntax-only; it passes. LibreSSL documents SSL_library_init as always returning 1: https://man.archlinux.org/man/extra/libressl/libressl-SSL_library_init.3.en

I approve this scoped compatibility implementation. I did not run the linked guest test binary or claim console behavior; the PR reports the full build was unavailable because VulkanHeaders is missing, and current hosted checks for this small change do not include the product test target.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5661281206 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11662#pullrequestreview-5661281206). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T01:40:46Z. **Review:** APPROVED --- The template answer is now corrected, and the latest hosted conventions, intake, and labels checks pass. I rechecked the one-line implementation, API declaration, repeated-call test registration, whitespace check, and compiled the changed test translation unit with `-fsyntax-only`; it passes. LibreSSL documents `SSL_library_init` as always returning 1: https://man.archlinux.org/man/extra/libressl/libressl-SSL_library_init.3.en I approve this scoped compatibility implementation. I did not run the linked guest test binary or claim console behavior; the PR reports the full build was unavailable because VulkanHeaders is missing, and current hosted checks for this small change do not include the product test target.
MarcZX10 commented 2026-10-27 01:48:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T01:48:58Z.

Review: CHANGES_REQUESTED


Follow-up after the collaborator noted the stale debt count. I independently checked the exact PR head a60c925a0a21a3559e27c3e3cec0512c23d5f049: Export.cpp contains 318 NotImplemented_nid_no_patch markers, while docs/dev/debt/libSceLibreSsl.md still says 319 pending exports. Please update the count (or recount against the then-current base if another LibreSSL export lands first). The SSL_library_init implementation itself remains consistent with the documented LibreSSL return value; this change request is for keeping the debt inventory accurate.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5661327018 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11662#pullrequestreview-5661327018). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T01:48:58Z. **Review:** CHANGES_REQUESTED --- Follow-up after the collaborator noted the stale debt count. I independently checked the exact PR head `a60c925a0a21a3559e27c3e3cec0512c23d5f049`: `Export.cpp` contains 318 `NotImplemented_nid_no_patch` markers, while `docs/dev/debt/libSceLibreSsl.md` still says 319 pending exports. Please update the count (or recount against the then-current base if another LibreSSL export lands first). The `SSL_library_init` implementation itself remains consistent with the documented LibreSSL return value; this change request is for keeping the debt inventory accurate.
MarcZX10 commented 2026-10-27 01:55:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T01:55:05Z.

Review: APPROVED


Re-reviewed the updated exact head 7c585dfba2a69f53b11ee9706e20cbc076682fa5. The debt inventory now says 318 pending exports, matching the 318 remaining NotImplemented_nid_no_patch markers; the new SSL_library_init entry documents the always-1 compatibility behavior and its limitation. The earlier requested count correction is resolved. The implementation and repeated-call regression remain as reviewed. Hosted conventions and labels pass. I did not run the linked guest test binary or claim console validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5661361140 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11662#pullrequestreview-5661361140). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T01:55:05Z. **Review:** APPROVED --- Re-reviewed the updated exact head `7c585dfba2a69f53b11ee9706e20cbc076682fa5`. The debt inventory now says 318 pending exports, matching the 318 remaining `NotImplemented_nid_no_patch` markers; the new `SSL_library_init` entry documents the always-1 compatibility behavior and its limitation. The earlier requested count correction is resolved. The implementation and repeated-call regression remain as reviewed. Hosted conventions and labels pass. I did not run the linked guest test binary or claim console validation.
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!11662
No description provided.