feat(libSceLibreSsl): implement SSL_get0_param #15278
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15278"
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 alvaroelpob on 2026-11-02T22:37:36Z.
What
Implements
SSL_get0_param(SSL*)in libSceLibreSsl, which threw and was declared without parameters.LibreSSL 2.5.4, whose version string the module holds, has no
SSL_get0_param. It first appears in the LibreSSL 2.7.0ssl_lib.c, which returnsssl->param; 2.6.0 still lacks it.This reads that pointer at offset 64 of the 2.5.4 232-byte
SSLlayout that #10481 models. That a module exporting a later function keeps that layout is unverified, and the debt entry says so.The function is added to #10481's
src/Ssl.cppand its test toGuestLibreSslSsl.cpp, so this builds on it. A null connection, which LibreSSL dereferences, throws. The pending count drops by one.Tested
Linux:
suite.py feat/libscelibressl-ssl-get0-paramat91bf6f3883: CTest 6574/6574 passed; conventions passed.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 BunnyFl on 2026-11-04T00:37:40Z.
Review: APPROVED
@alvaroelpob approved at
c0aafd5b60. I only looked at the newSSL_get0_param; the code from #10481 is theirs to review.What I ran: this head merged onto
main(merge28b0847b0d), Windows 11, WinLibs GCC, Release.guest_libressl_sslandpublic_headerspass (2 of 2). That covers the Windows run your description lists as not tested.tools/check_conventions.py --base upstream/main --headon this head: all checks pass.SSL_get0_paramreturningnullptrfirst,guest_libressl_sslfails at line 144 (1 of 1).Firmware: this answers what the layout compile left open. In 13.42
system/common/lib/libSceLibreSsl.sprx(sha25657de57100cdeecdf8db74d6914b0c50ac9a9113fead232d03dce2df227cd9032),SSL_get0_param(OjlHVH8jjsw) is, read from disassembly and not run:That is your
paramat 64 (static_assert(offsetof(LibreSslSsl, param) == 64)).So the offsets you got from compiling LibreSSL 2.5.4 match the console module.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T21:21:51Z.
Review: APPROVED
Reviewed — looks good
The implementation reads the
paramfield and rejects a null connection; all five changed files listed in the manifest were read, and the reported test results are author supplied.What I ran
Inspected head
a8f24d40163206e7ea730414c3ee717073f2f6f1usingrepo_read.pyfor the prepared diff and targeted source ranges. No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Windows and console behavior were not tested. I did not independently verify the claimed LibreSSL version history or the PR description's reported build and test results. The prepared bundle included all changed files; no exclusions were provided in the manifest.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:49:30Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the pointer getter and null-connection behavior are consistent with the stated implementation, and no blocking defect was verified.
What I ran
Reviewed head
91bf6f3883efccc4313a8bee721b581680e2b940. Read the prepared PR description, commits, manifest, diff, and all changed-file contents, plus targetedSslInternal.hpplayout context and export/test references. No commands or tests were run; the suite result below is author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The behavior of the console module’s
SSLlayout at offset 64 remains unverified, as the PR description and debt entry state. No independent build or test run was performed. Files read:core/libs/prx/libSceLibreSsl/Export.cpp,core/libs/prx/libSceLibreSsl/include/Api.hpp,core/libs/prx/libSceLibreSsl/src/Ssl.cpp,core/libs/tests/GuestLibreSslSsl.cpp,docs/dev/debt/changes/feat-libscelibressl-ssl-get0-param.md, and targeted context fromcore/libs/prx/libSceLibreSsl/include/SslInternal.hpp. No changed files were excluded;review/files.jsonwas not available as a review-folder document, and the listing confirmed all changed files were included.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T13:16:23Z.
Review: COMMENTED
Checked the branch sources and built the focused tests against the existing Linux runtime.
GuestLibreSslSslpassed, including the SSL parameter accessor checks.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.