feat(libSceLibreSsl3): implement the BIO data, init, shutdown and flag accessors #15760

Merged
alvaroelpob merged 26 commits from upstream-pr/15760 into main 2026-11-08 14:57:17 +00:00
alvaroelpob commented 2026-11-04 13:08:45 +00:00 (Migrated from github.com)

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


What

Implements BIO_get_data, BIO_set_data, BIO_set_init, BIO_get_shutdown, BIO_set_shutdown, BIO_set_flags and BIO_clear_flags in libSceLibreSsl3 as in LibreSSL 4.0.0 bio_lib.c, on the BIOs that the forwarded libSceLibreSsl BIO_new creates.

Tested

Linux x86-64 (WSL2), Release: the full build passes and ctest --test-dir build -j16 passes 3883 of 3883 tests at head 9c59c31ba4, on main b11c7bf84f, which passes 3882 of 3882 on the same machine. The new guest_libressl3_bio_fields 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:5154802801 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15760). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-04T13:08:45Z. --- ### What Implements `BIO_get_data`, `BIO_set_data`, `BIO_set_init`, `BIO_get_shutdown`, `BIO_set_shutdown`, `BIO_set_flags` and `BIO_clear_flags` in libSceLibreSsl3 as in LibreSSL 4.0.0 [`bio_lib.c`](https://github.com/libressl/openbsd/blob/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/bio/bio_lib.c#L205-L266), on the BIOs that the forwarded libSceLibreSsl `BIO_new` creates. ### 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 9c59c31ba4, on `main` b11c7bf84f, which passes 3882 of 3882 on the same machine. The new `guest_libressl3_bio_fields` 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: #12945, #14366, #14465, #14889, #14890, #14992, #15031, #15045, #15119, #15289, #15303, #15406, #15449, #15472, #15514, #15616, #15618, #15620, #15622, #15623, #15625, #15627, #15628, #15629, #15631, #15758 - [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!15760
No description provided.