feat(libSceLibreSsl): implement file and socket BIO adapters #12928
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12928"
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 xdCloudy on 2026-10-29T15:03:16Z.
What
Implement three LibreSSL BIO exports:
BIO_s_fileBIO_new_fpBIO_new_socketThe implementation uses AnyPS5's guest-compatible BIO framework, guest libc
FileStreamandlibSceNetsocket descriptors.File reads distinguish clean EOF from I/O errors. File reset preserves the guest seek result. File and socket ownership follows the caller's close flag.
Upstream reconciliation
Commit
dba71fc5f79be270ca4e8604cb4ac80b079cb213reconciled this PR against upstreammainat495162fcb3e4a93879c23e117ad0772da47b96cb.Both prerequisites are merged:
The reconciled PR changes six files. It:
docs/dev/debt/libSceLibreSsl.md.A subsequent merge of
mainby @oneandonlydean, at commit18538446777d653c7eac91715049611e2a2327de, incorporated upstream changes including #11553.That upstream change removed the historical LibreSSL pending-exports count line. The merge correctly preserves its removal rather than reintroducing the obsolete count.
No previously removed cryptographic implementation families have been restored. No unrelated implementation changes are intended by this PR.
Limitations
The implementation and its limitations are recorded in
docs/dev/debt/libSceLibreSsl.md.Tested
Earlier Windows x86_64 / WinLibs GCC / CMake-Ninja Release testing passed:
guest_libressl_bioguest_libressl_bio_patchedguest_libressl_errorsResult: 3/3 passed on the previously reconciled tree.
Coverage includes:
The initial upstream reconciliation was validated by comparing proposed changes with the merged upstream sources and preserving existing test coverage.
The subsequent merge by @oneandonlydean resolved the documentation conflict without requiring additional adapter changes.
Hosted CI for the latest head is still queued. Previous runtime results are not claimed as fresh test results for that commit.
No console, title-level or live-network validation is claimed.
Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:54:16Z.
Review: COMMENTED
+1.6k lines for LibreSSL file and socket BIO adapters. The socket adapter in particular is hard to trust without a real title run.