feat(libSceLibreSsl): implement TLS alert descriptions #9870
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9870"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by lost9409 on 2026-10-22T20:05:02Z.
What
Implement SSL_alert_desc_string_long in libSceLibreSsl, replacing its throwing stub.
The implementation follows LibreSSL 2.5.4:
github.com/libressl/openbsd@2e2c612066/src/lib/libssl/ssl_stat.cIt selects the low byte, returns the 30 recognized descriptions, and returns "unknown" for other codes. The public Api.hpp declaration now has the correct const char* return type and int argument. Both the implementation and fixture include the library umbrella header; there is no duplicate test-local declaration.
Existing upstream LibreSSL sources and test registrations are retained. This adds one implemented system library function; no title-unblock claim.
BunnyFl independently reports identical strings against the firmware 13.42 module executed natively on a PC: 3,841 inputs, three identical runs, with mutations detected. This was not a console run:
https://github.com/boykopovar/AnyPS5/pull/9870#issuecomment-6406774281
The debt entry now reflects this evidence and retains the console/other-firmware limitations.
Integration: the tested base is main at
204c6747d0, including the merged #9529 and #10071.The corrected overlap scan used --branch HEAD against main at
b27cc8416f. It reported no duplicate exports or new files. Manual inspection of the patches for the ten incomplete comparisons (#9446, #9535, #9536, #9571, #9745, #10248, #10418, #10475, #10570, #10571) found no added implementation of SSL_alert_desc_string_long.Shared debt edits remain, plus CMake overlaps with #10078, #11003, #11089, #11100, #11105, #11189, #11261 and #11359. No new merge order has been agreed. Please confirm sequencing for these shared-file changes; all source/test registrations and the pending-export count must be retained when resolving them.
Tested
Windows 11 Pro build 26200, Intel i7-14700KF, WinLibs GCC 15.2.0 r7, CMake 4.3.1, Ninja 1.13.2, Release.
Tested head:
9a848d0b99.Tested base:
204c6747d0.Additional Linux development validation: isolated compilation and execution of the updated alert implementation/fixture with -Wall -Wextra -Werror passed, as did the public-header audit. This was not a full Linux project build.
Not tested: a clean Windows build directory, console execution, a title, or the full repository test suite. These are local results, not hosted product CI.
AI-assisted: ChatGPT/Codex.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T20:11:29Z.
Review: CHANGES_REQUESTED
I checked the source against the cited LibreSSL 2.5.4
ssl_stat.c; the 30 descriptions, low-byte selection andunknownfallback match that revision, and the reported exhaustive test matrix is useful.There is an integration blocker in the current patch: upstream
core/libs/CMakeLists.txtonly adds a library-specificCMakeLists.txtwhen one exists undercore/libs/prx/<name>/. Before this PR,libSceLibreSslhas no such file, so its fallback target includes onlyExport.cpp. The newAlert.cppimplementation andGuestLibreSslAlert.cpptest target therefore are not built or registered by a normal project configure. Please add the required top-level test registration (and ensure the implementation is part of the library target), then demonstrate the focused CMake build/CTest path from that configuration.Also, GitHub's compare API currently reports this head as two commits behind and one ahead of current
main(merge basef6075c2f4a), while the checklist says based on current main. Please rebase/update to currentmain, rerun conventions and the focused test on the final head, and update the Tested section. Hosted checks currently pass only conventions, intake and labels; no product build has run. I have not run the PR binary locally because this checkout has no configured build directory.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T03:39:31Z.
Review: DISMISSED
The open PRs listed in my inline discussion each add the same new CMakeLists.txt and define the same library target with separate sources and tests. Contribution rules require coordination on shared-file changes and an accurate
Depends onentry. Please obtain an agreed landing order and update the checklist/combined CMake integration before approval. I reviewed the alert implementation and reported test evidence; this request is only for the unresolved build integration conflict. The PR reports Windows focused tests and checks; product CI is skipped by policy.