feat(libSceSsl): implement sceSslGetCaList, sceSslFreeCaList and sceSslUnloadCert #2830
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2830"
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 SleglJan on 2026-10-10T16:15:11Z.
What
Implements
sceSslGetCaList,sceSslFreeCaListandsceSslUnloadCertin libSceSsl.sceSslGetCaListandsceSslFreeCaList, and PPSA15508 (The Last of Us Part II Remastered) importssceSslUnloadCert. Onmain57f96fd2all three are missing, and each title's loader stops first on one of them: PPSA11386's withundefined symbol: qOn+wm28wmA(sceSslGetCaList; its other missing imports aresceSslFreeCaListandsceNetShowNetstat, #2831), PPSA15508's withundefined symbol: UQ+3Qu7v3cA(sceSslUnloadCert). For 007 this is row 1 of #2523.sceSslGetCaListclears the list and returnsNOT_FOUND(0x8095F004), assceSslGetCaCertsalready does;sceSslFreeCaListaccepts that cleared list and returns 0;sceSslUnloadCerthas nothing to drop and returns 0, which is assumed.0x8095177A, the codesceSslGetCaCertsand KytyPS5 return for a null argument; shadPS4 (PS4) returns0x8095F007fromsceSslGetCaCerts, and its CA-list functions are stubs without parameters. An unknown context and a listsceSslGetCaListdid not return throw: KytyPS5 returnsSSL_ERROR_INVALID_ID(0x8095F006) for an unknown context insceSslGetCaCerts, but nothing confirms a code for these functions.SceSslCaList(handle array, 32-bit count) follow SharpProspero and shadPS4'sOrbisSslCaList; the size is astatic_assert.guest_ssl_testsnow linkslibcand callsconfigure_windows_unwind, asguest_http2_testsdoes. Withoutlibc, an exception thrown in libSceSsl is raised by the test binary's static libstdc++__cxa_throwbut resumed after thelock_guardcleanup by libc.prx's_Unwind_Resume, which aborts.configure_windows_unwindonly acts on MinGW; Windows was last built and tested on the earlier base8b393b6e(fork run 37987888113: Windows 511/511), not on57f96fd2.sceSslGetCaCertsandsceSslFreeCaCertsstay as they are (they ignore the context and clear any list), to keep this to one topic.All of it is recorded in TechnicalDebt, including that on the console the list holds the certificate authorities the SSL service has (shadPS4 #4104 returns a placeholder certificate from
sceSslGetCaCertsbecause Rise of the Tomb Raider fails its initialization checks without one).Overlap: no open pull request changes libSceSsl. #2742 (Yousef13710) applied this commit and #2753 (pushkarreddyy) declared
sceSslUnloadCertas a throwing stub; the intake pause closed both. Closed #1884 implemented the same three functions with Mbed TLS and certificate parsing.sceSslLoadCertthrows onmain, so no certificate can be loaded.Tested
BUILD_TESTING=ONandANYPS5_ENABLE_SPIRV_TOOLS=ON, this branch onmain57f96fd2: of 701 tests, 696 pass, fourvideo_out_flip_*tests (lifetime, reopen, controls, overlay) skip (no Vulkan in SDL's offscreen video driver), andagc_driver_dcc_keys_first_writefails, which is #2767 (NVIDIA, Linux).guest_sslpasses 3 repeats.tools/check_conventions.py --base upstream/mainandgit diff --checkpass.guest_ssladditions: a null list (also with an unknown context, which pins the check order), the cleared list afterNOT_FOUND, three listssceSslGetCaListdid not return ({p, 1},{nullptr, 1},{p, 0}),sceSslUnloadCertreturning 0 with the list stillNOT_FOUNDafter it, and all three functions throwing aftersceSslTerm. Written before the implementation; without it the test does not link. Eight mutations of the implementation each fail it (list not cleared, 0 instead ofNOT_FOUND, foreign lists accepted, the count ignored, no context check,sceSslUnloadCertwithout it, 0 for a null list, the context check before the null check); the mutations were run on the earlier base8b393b6e, and the rebase changed only line offsets.libSceSsl.prxexportsqOn+wm28wmA,+DzXseDVkeIandUQ+3Qu7v3cA.main57f96fd2and run in a bubblewrap sandbox:sceSharePlayInitialize: invalid argument(row 2 of #2523). On the earlier base8b393b6e, with the null-heap fix for that stop as well, the title calledsceSslGetCaList,sceSslGetCaCerts,sceSslFreeCaListandsceSslFreeCaCertsat start-up and continued.UQ+3Qu7v3cAtosceVoiceGetMuteFlag, its only remaining absent import. That build also had #2831; PPSA15508 imports none of its functions.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_01Fnrk5Dazjb2tLooVSpdRQq
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:15:35Z.
Progress report (
57f96fd→33184a1)📈 System libraries: 84.53% (+0.01%, +3 implemented functions)
✅ 3 implemented
sceSslFreeCaListsceSslGetCaListsceSslUnloadCert