Repository navigation
feat(libSceLibreSsl): return the measured version from SSLeay - #9745
Conversation
Progress report (9656d36 → 601226d)📈 System libraries: 51.01% (+0.01%, +1 implemented functions) ✅ 1 implemented
⚪ 1 behaviourally empty (constant return or throw)
Changed libraries (implemented exports)
|
There was a problem hiding this comment.
The constant is supported by the firmware 13.40 measurement cited here, and I found no competing implementation of SSLeay. The PR also identifies shared CMake/debt-file edits with the other open LibreSSL PRs; record the agreed merge order/dependency as required by the repository overlap rule before merge.
I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.
|
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.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
MarcZX10
left a comment
There was a problem hiding this comment.
The reported SSLeay() value is supported by the firmware measurement and LibreSSL source cited in the description, and the constant-return implementation and repeat-call assertion are appropriately scoped. I checked the current PR head f3c4ebe33e789b72b5cc921ea88f61849862fd76 against current main b7d1d47a5f: merge-tree and git diff --check are clean, and python3 tools/check_conventions.py --base upstream/main --head upstream/pr/9745 passes.
Please update this branch from current main and refresh the focused test result before merge. The report's test run is on main 4777caca3 / PR commit f3c4ebe33, while the PR is now 54 commits behind current main. I could not rerun guest_libressl_version locally: this checkout has no configured CMake/CTest build, and the filesystem has only about 760 MB free. Current hosted product-test jobs are skipped; the green hosted checks are eligibility, conventions, intake, labels and report.
There is also an overlap-rule item to resolve. The current open LibreSSL work includes #9025, #9033, #9041, #9043, #9047, #9446, #9448, #9529, #9535, #9536 and #9571; the newer #9535/#9536/#9571 stacks also edit Export.cpp and the debt inventory. Please coordinate an order with the affected authors and update Depends on as required by CONTRIBUTING.md. The description currently lists only some of these overlaps and says Depends on: none without documenting the ordering agreement. No duplicate SSLeay implementation was found in the reviewed PR bodies/diffs.
I did not run the project test locally. The PR's reported 5/5 focused runs and negative control are author-reported, not results from this review.
f3c4ebe to
deff175
Compare
|
I’ve noticed that my earlier request to hold this PR based on #5239 was unnecessary. It’s fine to keep submitting PRs; maintainers will handle them in due course. Please disregard that request. |
deff175 to
033706c
Compare
Dismissing a stale review: the requested changes were addressed after it (new head) and the merge queue blocks on it. Please request changes again if anything is still open.
|
Windows run of this head
AI-assisted: yes (Claude Code) |
SSLeay() returns 0x20000000, the value measured on a PS5 with firmware 13.40 and the SSLEAY_VERSION_NUMBER of LibreSSL 2.5.4, which the module is. The guest_libressl_version test checks it.
033706c to
601226d
Compare
|
Rebased onto current
|
What
Source of the behaviour.
sceSysmoduleLoadModule:libressl-v2.5.4,2e2c6120):SSLeayreturnsSSLEAY_VERSION_NUMBER, which isOPENSSL_VERSION_NUMBER,0x20000000L. The prototype isunsigned long SSLeay(void).libressl-v4.0.0,ce488b78) gives the same value:SSLeay,SSLEAY_VERSION_NUMBER,0x20000000L.SSLeay()in libSceLibreSsl now returns0x20000000. Onmainit is one of the throwing stubs (Export.cpp L1629-L1632). The function takes no argument and reads no state, so this is its whole behaviour for every call.tools/progress.pylists it as a constant return; the constant is the measured one.Changes:
Export.cpp:std::uint64_t SSLeay_nid_postfix(void)returns0x20000000. The guest'sunsigned longis 64 bits (SysV LP64), andstd::uint64_tkeeps it 64 bits on the Windows host too (LLP64), as feat(libSceLibreSsl): implement the per-thread error queue #9529 does forERR_get_error.core/libs/prx/libSceLibreSsl/CMakeLists.txt(new): builds the module fromExport.cppas the default rule incore/libs/CMakeLists.txtdoes, and registersguest_libressl_version. It is the same layout as the open LibreSsl pull requests use (feat(libSceLibreSsl): implement the MD4, MD5, SHA-1 and SHA-2 digests #9025, feat(libSceLibreSsl): implement the low-level AES functions #9033, feat(libSceLibreSsl): implement RAND and the CRYPTO allocator functions #9041, feat(libSceLibreSsl): implement the BN_ BIGNUM, BN_CTX, conversion, word, BN_mul and BN_mod_inverse functions #9446, feat(libSceLibreSsl): implement the per-thread error queue #9529).core/libs/tests/GuestLibreSslVersion.cpp:SSLeay()returns0x20000000, the same on a second call.docs/dev/debt/libSceLibreSsl.md: the pending export count goes from 399 to 398. No new entry, as nothing is left unimplemented in this function.How this fits with #8981: the maintainers have not chosen yet between a LibreSSL submodule and hand-written exports. This change does not depend on that choice. A submodule build at 2.5.4 or 4.0.0 returns the same constant from
SSLeay, so the function and the test stay valid either way. If a submodule lands first,SSLeay_nid_postfixcan forward to it, and the test can stay as it is.Merge order with the open LibreSSL pull requests. #9025, #9033, #9041, #9043, #9047, #9446, #9448, #9529 and #9571 share this change's new
core/libs/prx/libSceLibreSsl/CMakeLists.txt(all but #9571) and the count line ofdocs/dev/debt/libSceLibreSsl.md(all nine). There is no dependency in either direction: none of them needsSSLeay, and this change needs nothing from them. Whichever of them lands first, this pull request rebases on it, keeps itsadd_testblocks and source list, and lowers the count from the new value; it does not ask any of them to wait. The conflict is text only, and none of them changesSSLeay. #9535 and #9536 also editExport.cppand the debt file, in other functions and other lines, and do not create thisCMakeLists.txt; the same applies to them.Unblocks: none. No title is known to call
SSLeay. The measurement was taken inside Gran Turismo 7 (PPSA01317), but that only means the module loads there, not that the game calls this export.Tested
Linux x86-64 (GitHub Codespace, 4 cores, AMD EPYC 7763), this branch
deff17579rebased onmaincbcb08308, built withBUILD_TESTING=ON. No title.guest_libressl_version_tests: passed 5 times out of 5.core/libs/prx/libSceLibreSsl/Export.cpprestored frommainand rebuilt, the test aborts withwhat(): SSLeay_nid_postfix not implemented. With the change back, it passes 5 times out of 5.tools/progress.pyofmaincbcb08308against this branch: +1 implemented function (SSLeay_nid_postfix), 4835/11180 to 4836/11180.python3 tools/check_conventions.py --base origin/main: all checks passed.git diff --check: clean.Duplicate and overlap check
python3 tools/pr_overlap.py --branch feat/libressl-ssleay-versionlists #9025, #9033, #9041, #9043, #9047, #9446, #9448 and #9529 (each createscore/libs/prx/libSceLibreSsl/CMakeLists.txtand edits the count line ofdocs/dev/debt/libSceLibreSsl.md) and #9571 (count line only). No shared exports. These are the text conflicts described above; none of them touchesSSLeay.Searches of open and closed pull requests for
SSLeay(title, body, and the diffs of the 12 open libSceLibreSsl and libSceLibreSsl3 pull requests: #8956, #9025, #9033, #9041, #9043, #9047, #9446, #9448, #9529, #9535, #9536, #9571) find none that implements it. Searched again on 2026-10-22 up to #9732.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)SSLeay)