feat(libSceLibreSsl3): implement BIO_meth_new, BIO_meth_free and the BIO_METHOD setters #15761

Merged
alvaroelpob merged 25 commits from upstream-pr/15761 into main 2026-11-08 16:06:29 +00:00
alvaroelpob commented 2026-11-04 13:15:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-04T13:15:12Z.


What

Implements BIO_meth_new, BIO_meth_free, BIO_meth_set_write, BIO_meth_set_read, BIO_meth_set_ctrl, BIO_meth_set_create and BIO_meth_set_destroy in libSceLibreSsl3 as in LibreSSL 4.0.0 bio_meth.c, on the 80-byte BIO_METHOD that the forwarded libSceLibreSsl BIO_new, BIO_write, BIO_ctrl and BIO_free already use.

Tested

Linux x86-64 (WSL2), Release: the full build passes and ctest --test-dir build -j16 passes 3883 of 3883 tests at head b5b1884d10, on main b11c7bf84f, which passes 3882 of 3882 on the same machine. The new guest_libressl3_bio_method builds methods with these calls and runs them through libSceLibreSsl's BIO_new, BIO_write, BIO_ctrl and BIO_free, checks a failed allocation and that every block is released; it fails against main's throwing stubs. python3 tools/check_conventions.py --base upstream/main passes. Not run on a console or in a title.

Checklist

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5154894137 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15761). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-04T13:15:12Z. --- ### What Implements `BIO_meth_new`, `BIO_meth_free`, `BIO_meth_set_write`, `BIO_meth_set_read`, `BIO_meth_set_ctrl`, `BIO_meth_set_create` and `BIO_meth_set_destroy` in libSceLibreSsl3 as in LibreSSL 4.0.0 [`bio_meth.c`](https://github.com/libressl/openbsd/blob/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/bio/bio_meth.c), on the 80-byte `BIO_METHOD` that the forwarded libSceLibreSsl `BIO_new`, `BIO_write`, `BIO_ctrl` and `BIO_free` already use. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux x86-64 (WSL2), Release: the full build passes and `ctest --test-dir build -j16` passes 3883 of 3883 tests at head b5b1884d10, on `main` b11c7bf84f, which passes 3882 of 3882 on the same machine. The new `guest_libressl3_bio_method` builds methods with these calls and runs them through libSceLibreSsl's `BIO_new`, `BIO_write`, `BIO_ctrl` and `BIO_free`, checks a failed allocation and that every block is released; it fails against `main`'s throwing stubs. `python3 tools/check_conventions.py --base upstream/main` passes. Not run on a console or in a title. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #1384, #12945, #14366, #14448, #14465, #14889, #14890, #14992, #15031, #15045, #15119, #15232, #15289, #15303, #15406, #15449, #15472, #15514, #15616, #15618, #15620, #15622, #15623, #15624, #15625, #15627, #15628, #15629, #15631, #15758, #15760 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!15761
No description provided.