feat(libSceSsl): parse certificates and account context memory #1884
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1884"
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 Albaloola on 2026-10-08T22:44:36Z.
What
Implement eight existing certificate/memory exports and three necessary CA-list/unload exports. Parse DER/PEM certificate chains and matching client keys, enumerate subject/issuer entries, return raw serial bytes, retain independent certificate/list/name snapshots, and account bounded per-context backend/data memory. Imports commit atomically; malformed chains, mismatched keys and exhausted pools preserve prior state.
Use source-built Mbed TLS 3.6.7 under its offered GPL-2.0-or-later license. The optional Apache-only Everest implementation is disabled/unlinked. Guest signatures follow pinned SharpProspero and orbital declarations. TideOPL's #1119 overlaps MemoryPoolStats with a zero-usage implementation; no code from it is imported.
Tested
Windows x86-64, WinLibs MinGW-w64 GCC 15.2.0, Release. This topic is based on upstream main
ce64d8eb. Runtime results below come from the integrated checkout; the isolated source checks are described separately. The final integrated Release build and library target passed, with 504/506 CTests passing: only the pre-existing shader_clock and vopc_compare_table GPU failures remain. No new failures were observed.The baseline library fails the pool-stat regression. Six focused SSL/HTTP/HTTP2 tests pass, including generated certificate/key fixtures, DER round trips, name/serial bytes, short-buffer canaries, pool exhaustion rollback, bad second CA/client key, snapshot survival across unload, context isolation, stale handles and concurrent cycles. Full build/libs, repeated cache-isolated configuration, conventions and registration pass. Export inspection finds 17 guest symbols and no backend symbols.
This parses credentials and checks client key correspondence; it does not perform a TLS handshake or authenticate a peer. Only explicitly loaded CAs are available. C++ bookkeeping/tombstones are outside the bounded backend/data pool. Console formatting/error precedence/allocation parity remain unverified; Close/GetPem remain unimplemented. No PS5 hardware, retail title or Linux runtime validation was performed.
Isolated publication-source check: all 3 affected production/test compile configurations pass with this branch's own core headers, excluding neighboring local topics. Conventions, diff checks and source/test registration review also pass. Dependency headers and generated configuration come from the existing pinned build; a new full configure/link/runtime run was not performed for this isolation check.
Checklist
Pull request closed