feat(libSceLibreSsl3): implement tls_config_set_ciphers for the libtls presets #18760
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18760"
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 bagodees on 2026-11-12T05:37:26Z.
What
Implements
tls_config_set_ciphersin libSceLibreSsl3 for the libtls preset names, following LibreSSL 4.0.0tls_config.candtls_internal.h:secure/defaultselectTLSv1.3:TLSv1.2+AEAD+ECDHE:TLSv1.2+AEAD+DHE,compatselectsHIGH:!aNULL,legacyselectsHIGH:MEDIUM:!aNULL, andall/insecureselectALL:!aNULL:!eNULL. Names are matched case-insensitively, as LibreSSL does, and the expanded strings are also accepted.std::runtime_error, because LibreSSL validates it withSSL_CTX_newandSSL_CTX_set_cipher_list, and both are still stubs in libSceLibreSsl. This is recorded indocs/dev/debt/libSceLibreSsl3.md.The stored string is owned by the configuration and freed with it. The debt inventory drops the export, which brings the count to 78.
Tested
Windows 11 Pro, MinGW (winlibs) full build of
0dfe72d5d0onmain6340804728.ctest --test-dir build -R "libressl3|libtls|LibreSsl3|public_headers"passed 122/122, includingLibTlsSettings, which checks every preset name in mixed case, the expanded preset strings, null resets, a caller-owned string, rejected custom strings and a null configuration over 256 iterations.python tools/check_conventions.py --base upstream/mainpassed. Not tested on a console or with a title.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T06:10:31Z.
Review: COMMENTED
Reviewed — no blocking findings
The preset expansion and stored-value behavior match the pinned LibreSSL source; hosted checks remain queued, so this is a comment rather than an approval.
What I ran
Head
0dfe72d5d00f028451457351c41fc95e07994920; base145e689adab572c44a99369516565d28e85f6c12. No merged-preview build was run.Environment: Linux 6.1, Python 3.11.2, GCC C++ 12.2.0.
I read all six changed files, checked the preset and string ownership behavior against LibreSSL 4.0.0, and verified the added test registration in CMake. The overlap report identifies shared edits to the debt inventory, but no same-export overlap.
Results
guest_libressl3_libtls_settings.Precheck result
The test-quality heuristic flagged possible missing registration; inspection of the pinned CMake file confirmed the test is registered. The precheck reported both head and base unchanged.
Findings
Blocking
None found in the six changed files.
Non-blocking
Custom cipher strings still throw until cipher-list validation is implemented, and the stored setting is not yet consumed by TLS transport. The PR and debt entry disclose these limits.
Sources
Not verified
To get this to a good state
Let the hosted checks finish. I’ll re-check this head and its results before deciding whether an approval is appropriate.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-12T07:50:27Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
0dfe72d5d0:tools/check_conventions.pypassed;git diff --checkclean.guest_libressl3_libtls_settings_testsbuilt cleanly.guest_libressl3_libtls_settings):core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp,core/libs/prx/libSceLibreSsl3/include/Api.hpp,core/libs/prx/libSceLibreSsl3/include/LibTls.hpp,core/libs/prx/libSceLibreSsl3/src/LibTls.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Generated withfooter from the description; the AI-assisted checkbox can stay.Looks Good To Me