feat(libSceLibreSsl3): implement TLS_method and TLS_server_method #16848
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16848"
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 GalaxyGamingFR on 2026-11-07T18:07:27Z.
What
Implement
TLS_methodandTLS_server_methodinlibSceLibreSsl3, replacing their parameterless throwing placeholders inAdditionalExports.cpp.ce488b78ssl_methods.c, the revision the library's debt file already uses.LibreSsl3SslMethodwithdtls0,server1, version0x0304and the0x0301-0x0304range, as upstreamTLS_method_datadoes.TLS_server_methodreturnsTLS_method()upstream too.Api.hppnow declares both as returningconst LibreSsl3SslMethod*. That is the layoutSSL_CTX_set_min_proto_versionandSSL_CTX_set_max_proto_versionin the same file already read.The gap is recorded in
docs/dev/debt/libSceLibreSsl3.md: the 16-byte struct has no handshake callbacks orenc_flags, andSSL_CTX_newandSSL_newstill reach libSceLibreSsl stubs that throw, so no context can be built from this method yet. The export inventory is updated (138 exports, 128 named).No title's trace or disassembly was used, and the exports were not measured on a PS5.
Tested
Windows 11, WinLibs GCC 15.2.0 UCRT r7. Not a full CMake build: I compiled
GuestLibreSsl3Ssl.cppwithSsl.cpp,X509.cpp,Key.cppand libSceLibreSsl'sError.cppinto one executable, withAPS5_VABIdefined empty and a one-lineNotImplementedAt_nid_no_patchthat throws. No title or homebrew, and not built on Linux or macOS.CheckTlsMethod. It checks the method's fields, that both exports return the same pointer, and thatSSL_CTX_set_min_proto_versionandSSL_CTX_set_max_proto_versionclamp against its range.0x0302minimum instead of0x0301, makes the test fail atTLS method range.python tools/check_conventions.py --base origin/mainpasses.I searched open and merged pull requests for
TLS_methodandTLS_server_methodjust before opening this one, and none implements them. #16586, #16588 and #16589 change the same export inventory count, so whichever lands later needs a one-line rebase.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