feat(libSceLibreSsl3): implement four libtls CA and verification settings #15303
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15303"
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 hyvvs on 2026-11-02T23:03:39Z.
What
Add four source-backed
libSceLibreSsl3libtls configuration exports:tls_config_set_ca_mem,tls_config_set_protocols,tls_config_verify_clientandtls_config_insecure_noverifyname. CA memory is copied into config-owned storage and replaced/cleared according to OpenBSDtls_config.candtls_set_mem; a null CA pointer clears the buffer and succeeds even with a positive length. The remaining three functions assign the protocol bitmask and the client-certificate and hostname-verification settings using public libtls signatures.Depends on #15289: this branch descends from that PR's current merged-upstream head, including its follow-up key-memory fix. Its
TlsConfigstorage and lifetime come from #15289, and this PR adds four exports to the same module. Until #15289 merges, GitHub's base-main diff also includes its ten functions; review the four-function delta here. This PR adds exactly 4 more implemented exports, advancinglibSceLibreSsl3from 29/270 to 33/270 at the current upstream base.TLS transport, certificate parsing and cipher validation remain unimplemented;
tls_config_set_cert_mem,tls_config_set_ciphers, handshake, read and write continue throwing.tls_config_set_cert_memrequires immediate certificate parsing and validation, so it deliberately remains a stub until a proper certificate backend exists.tls_config_parse_protocolsalso remains a throwing stub in this branch: the same export is already implemented and claimed by PR #15045. Native PS5 ABI/error strings remain unverified and are documented in debt.Tested
LibTls.cppinto an actual DLL/import library and linkedLibTlsSettings.cppas a separate guest executable; passed. Tests include compile-time SysV prototypes and 8,192 CA-memory ownership/copying and configuration-setting iterations.-fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer;ASAN_OPTIONS=detect_leaks=1:halt_on_error=1andUBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1; passed.core/libs/tests/test_public_headers.py --audit-only: 405 libraries, 27,952 exports verified. Affected public-header compile batches 49, 50, 51 all passed.python tools/check_conventions.py --base upstream/main: passed.git diff --check: passed.python tools/progress.py --module libSceLibreSsl3: 33/270, exactly four additional functional exports; debt table has 161 remaining entries.libSceLibreSsl3andlibctarget links.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)