feat(libSceLibreSsl3): return from the error-string and digest loaders #17246
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17246"
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 fishingpvalues on 2026-11-08T16:05:41Z.
What
feat(libSceLibreSsl3): return from the error-string and digest loaders.
ERR_load_X509_strings,ERR_load_PEM_stringsandOpenSSL_add_all_digestsarevoid (void)in LibreSSL, and in firmware 13.42libSceLibreSsl3.sprxeach body is a loneret(0xc37b0,0x989d0and0x10100, read from the disassembly, not run on a console), so they return without loading anything. The implementations live insrc/ErrorStringLoaders.cpp, the exports leaveAdditionalExports.cpp, their declarations becomevoidininclude/Api.hpp, and theSilent stubssection ofdocs/dev/debt/libSceLibreSsl3.mdrecords why the tables they would fill are not modelled.#15591 no longer implements these three: at its head
925b6e1c71it covers only fourSSL_*exports, so this PR goes first. Both PRs still edit theAdditional exportscount line indocs/dev/debt/libSceLibreSsl3.md; if #15591 merges second it will recount that line from the mergedAdditionalExports.cpp. This branch is based onmainbfdb58119e.Tested
Linux x86-64 (Debian 13, glibc 2.41, GCC 14.2.0), Release,
BUILD_TESTING=ON, basemainf9c2d92b91:cmake --build build --target guest_libressl3_error_string_loaders_tests --parallel 8: passed.ctest --test-dir build -R '^guest_libressl3_error_string_loaders$' --output-on-failure: 1/1 passed.python3 tools/check_conventions.py --base origin/main: all checks passed.mainf9c2d92b91and resolved the technical-debt inventory conflicts; rebuilt and reran the test.Checklist
main; mergeable with the current tip; no other open PR implements the same functions (#15591 now covers fourSSL_*exports only)NotImplemented_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 gabichuuuuu on 2026-11-08T16:27:30Z.
Review: COMMENTED
Read against the LibreSSL in
3rdparty/libressl-openbsd(078b3d1d), which is what this module follows. I haven't built or run this branch.The three functions are empty bodies. In LibreSSL they do work.
ERR_load_X509_stringsandERR_load_PEM_stringsregister the reason strings (x509/x509_err.c,pem/pem_err.c).OpenSSL_add_all_digestsregisters the digests thatEVP_get_digestbynamelooks up (evp/c_all.c).Returning without doing either is a silent stub, which CONTRIBUTING doesn't allow unless the debt file lists it under Silent stubs.
Debt file: compared with
main, this branch'sdocs/dev/debt/libSceLibreSsl3.mddrops aBIO_methline thatmainnow has (src/BioMethod.cpp, #15761), and it repeats the new bullet on two consecutive lines. It looks rebased from an older copy of the file.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T14:29:54Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Head
74bb3b04c4f4b31513c4795510ec52886c45df6e, basemain. No build and no test run here. I read the diff for all six files and searched the repository at the head with the reader (repo_read.py searchandrepo_read.py cat).Results
src/ErrorStringLoaders.cppand the test agreeDigestNames.cpp,Export.cppandErrorStrings.cppdo what the doc saystools/check_conventions.pyFindings
Blocking
None.
Non-blocking
docs/dev/debt/libSceLibreSsl3.md:10: the entry sits under### Functional(heading at line 8). The house rule inCONTRIBUTING.mdand the PR checklist put silent stubs under Silent stubs. These loaders are silent no-ops, so the entry belongs there. The PR checklist line "silent stubs are listed under Silent stubs" is therefore not met as written.core/libs/prx/libSceLibreSsl3/tests/ErrorStringLoaders.cpp:23: the test only checks that the digest lookup returns the same pointer before and after the loader calls. It does not check anything the loaders do, so it would pass if they did nothing at all. It only shows that calling them does not crash.Not verified
Additional exportscount line in the debt doc. The diff shows no change to a count line. I did not confirm whether the count needs updating.AdditionalExports.cppandApi.hpp.0xc37b0,0x989d0,0x10100) are not verified. Nothing here runs on a console.Silent stubsheading in the debt doc was not located in the lines I read.ErrorStringLoaders.cppandtests/ErrorStringLoaders.cpp(new files, read in full from the diff); the diffs ofAdditionalExports.cpp,CMakeLists.txt,include/Api.hppanddocs/dev/debt/libSceLibreSsl3.md; the head ofinclude/Api.hpp(lines 1–30),AdditionalExports.cpp(lines 1–20),Export.cpp(lines 20–32) and the debt doc (lines 1–40). Not read in full:AdditionalExports.cpp(219 lines),CMakeLists.txt(934 lines),include/Api.hpp(466 lines) and the debt doc (187 lines).To get this to a good state
Nothing is required.
Optional:
ERR_load_X509_stringsentry from Functional into Silent stubs.