feat(libSceLibreSsl3): implement SSL_is_quic #16589

Closed
GalaxyGamingFR wants to merge 4 commits from upstream-pr/16589 into main
GalaxyGamingFR commented 2026-11-07 07:37:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by GalaxyGamingFR on 2026-11-07T07:37:21Z.


What

Implement SSL_is_quic in libSceLibreSsl3, replacing its parameterless throwing placeholder in AdditionalExports.cpp.

  • Source: LibreSSL 4.0.0 at ce488b78, the revision the library's debt file already uses.
  • It returns 1 when quicMethod of the existing LibreSsl3Ssl is set and 0 otherwise.
  • A null connection throws std::invalid_argument, as SSL_up_ref does in the same file. LibreSSL dereferences it and faults.

The gap is recorded in docs/dev/debt/libSceLibreSsl3.md, and the export inventory is updated (144 exports, 134 named).

No title's trace or disassembly was used, and the export was not measured on a PS5.

Tested

Windows 11, MinGW-w64 GCC 15.2 (WinLibs), Release build. No title or homebrew, and not built on Linux or macOS.

  • guest_libressl3_ssl passes. The new CheckIsQuic runs on a guarded LibreSsl3Ssl and covers a connection with and without a QUIC method, a null TLS method, and the null throw. It also checks that the query changes no byte of the connection.
  • One deliberate bug, reading method instead of quicMethod, makes the test fail.
  • python tools/check_conventions.py --base origin/main passes.

I searched open and merged pull requests for SSL_is_quic just before opening this one, and none implements it. #16586 and #16588 change the same export inventory count, so whichever lands later needs a one-line rebase.

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 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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5199537562 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16589). Originally posted by [GalaxyGamingFR](https://github.com/GalaxyGamingFR) on 2026-11-07T07:37:21Z. --- ### What Implement `SSL_is_quic` in `libSceLibreSsl3`, replacing its parameterless throwing placeholder in `AdditionalExports.cpp`. - Source: LibreSSL 4.0.0 at [`ce488b78`](https://github.com/libressl/openbsd/blob/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libssl/ssl_lib.c), the revision the library's debt file already uses. - It returns 1 when `quicMethod` of the existing `LibreSsl3Ssl` is set and 0 otherwise. - A null connection throws `std::invalid_argument`, as `SSL_up_ref` does in the same file. LibreSSL dereferences it and faults. The gap is recorded in `docs/dev/debt/libSceLibreSsl3.md`, and the export inventory is updated (144 exports, 134 named). No title's trace or disassembly was used, and the export was not measured on a PS5. ### Tested Windows 11, MinGW-w64 GCC 15.2 (WinLibs), Release build. No title or homebrew, and not built on Linux or macOS. - `guest_libressl3_ssl` passes. The new `CheckIsQuic` runs on a guarded `LibreSsl3Ssl` and covers a connection with and without a QUIC method, a null TLS method, and the null throw. It also checks that the query changes no byte of the connection. - One deliberate bug, reading `method` instead of `quicMethod`, makes the test fail. - `python tools/check_conventions.py --base origin/main` passes. I searched open and merged pull requests for `SSL_is_quic` just before opening this one, and none implements it. #16586 and #16588 change the same export inventory count, so whichever lands later needs a one-line rebase. ### 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 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 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-11-21 06:21:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T06:21:45Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the implementation matches the stated behavior and the inspected code supports merging.

What I ran

Reviewed head efd11bf602daaeb936a8b294cadf727366a74ab0. No build or tests were run in this review.

Results

Check Result Note
Change and touched code passed Implementation and layout inspected
Build and tests not run Author reports Windows build and test results

Findings

Blocking

None.

Non-blocking

None.

Not verified

The files listed in the manifest as reviewed were read: AdditionalExports.cpp, Api.hpp, Ssl.cpp, GuestLibreSsl3Ssl.cpp, libressl3-20171-inventory.md, and libSceLibreSsl3.md. Ssl.hpp was also read to confirm the existing quicMethod member. The test source was read, but the test was not run; build results, console behavior, and changes not included in the prepared diff were not verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6003465717 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16589#pullrequestreview-6003465717). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T06:21:45Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the implementation matches the stated behavior and the inspected code supports merging. ## What I ran Reviewed head `efd11bf602daaeb936a8b294cadf727366a74ab0`. No build or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Change and touched code | passed | Implementation and layout inspected | | Build and tests | not run | Author reports Windows build and test results | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The files listed in the manifest as reviewed were read: `AdditionalExports.cpp`, `Api.hpp`, `Ssl.cpp`, `GuestLibreSsl3Ssl.cpp`, `libressl3-20171-inventory.md`, and `libSceLibreSsl3.md`. `Ssl.hpp` was also read to confirm the existing `quicMethod` member. The test source was read, but the test was not run; build results, console behavior, and changes not included in the prepared diff were not verified. ## To get this to a good state Nothing is required.

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