feat(libSceLibreSsl): implement six sourced LibreSSL 2.5.4 exports #12601
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12601"
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 EagleBearerYS on 2026-10-28T22:29:39Z.
What
Six exports that were bare stubs now do what LibreSSL 2.5.4 does for them. 2.5.4 is the version #8981 measured on firmware 13.40, the same basis as the library's merged rows. Sources are libressl/openbsd 2e2c612066.
PKCS12_PBE_addp12_crpt.cL67-70: an empty bodyOBJ_cleanupobj_dat.cL265-280: returns when nothing was addedOBJ_createstill throws, so nothing can be added. The debt entry says it must free added objects onceOBJ_createadds themSSL_load_error_stringsssl_err.cL483-490: loads the crypto and SSL string tablesERR_error_stringthrows). The debt entry says soX509_STORE_CTX_get_ex_datax509_vfy.cL1978-1982 →CRYPTO_get_ex_dataX509_STORE_CTX_get1_chainx509_vfy.cL2013-2026 →sk_dupsk_dupmakes it, with each certificate'sreferencesraised by 1. A malformed chain throws before anything is allocated or raisedUI_set_resultui_lib.cL816-879UI_FLAG_REDOABLE, queuesUI_R_RESULT_TOO_SMALLor_LARGEand returns -1. Boolean strings store the matching ok or cancel character. Error data text is not modelled, since no export reads itApi.hppgains the 2.5.4X509(up toreferences),UIandUI_STRINGlayouts the functions read, and the six real signatures.Overlap:
git merge-treeagainst the open LibreSSL PRs shows no function changed on both sides.Export.cppandApi.hpp, of the same kind. It conflicts withmainalready.EVP_cleanupdebt sentence namesOBJ_cleanupandPKCS12_PBE_addas not implemented. That sentence drops the two names once this lands.Tested
get_ex_data: on a caller-built two-entry stack, indexes 0 and 1 give their entries. Index 2, index -1 and a null stack give NULL. Nothing else in the context changes.get1_chain:referencesraised by 1, and the original untouched;UI_set_result:REDOABLE, the buffer left alone, and0x28fff065or0x28fff064onERR_get_error;UI_STRING, the verify type, no buffer (0x28fff069), the boolean type, and the info type.void, are called, and queue nothing.main's stub, its test aborts with<name>_nid_postfix not implemented(all six).ctest -R libressl --repeat until-fail:10: 32 tests, 320 of 320 runs passed, 0 skipped.^guest_libressl: 32 tests, 10 of 10 runs passed on Linux and on Windows, 0 skipped. The libc and libkernel suites, run withAPS5_SKIP_TIMING_TESTS=1, run 171 and 291 tests on Linux and 199 and 314 on Windows, with 0 failed.main's code doesn't build the new tests, because its stubs take no parameters. The red above was taken with the real signatures kept and only the bodies put back.check_test_registration.pyandcheck_conventions.pypass, with no comment lines added.a312114ea3:888a3da862, a merge ofmainbb04a4f1ea, anda312114ea3, the pending-export count (run).a312114ea3sets the pending-export count indocs/dev/debt/libSceLibreSsl.mdto 293. The first commit had left it at the number before the six exports it implements. 293 is the number ofNotImplemented_nid_no_patchcalls left in the mergedExport.cpp; the same count gives the line's 299 onmain.^guest_libressltests andpublic_headersran 10 times with no failure. Linux: 33 run, 33 pass, 0 skip, 0 fail. Windows: 33 run, 33 pass, 0 skip, 0 fail. The libc and libkernel suites run 193 and 292 tests on Linux and 223 and 315 on Windows, with 0 failed. They ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.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)docs/dev/debt/libSceLibreSsl.md: whichever merges later recounts it in amainmerge