feat(libSceLibreSsl3): implement X509_ALGOR_get0 #15758

Merged
alvaroelpob merged 7 commits from upstream-pr/15758 into main 2026-11-08 13:56:32 +00:00
alvaroelpob commented 2026-11-04 12:53:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-04T12:53:50Z.


What

Implements X509_ALGOR_get0 in libSceLibreSsl3 as in LibreSSL 4.0.0 x_algor.c: it clears the value output first, reports V_ASN1_UNDEF and a null value for a missing parameter, and reads the identifier only for the outputs requested. LibreSsl3X509Algor::parameter becomes a typed LibreSsl3Asn1Type*, the 16-byte ASN1_TYPE shared by 2.5.4 and 4.0.0, and the X509_PUBKEY_get0_param test fixture is updated to match.

Tested

Linux x86-64 (WSL2), Release: the full build passes and ctest --test-dir build -j16 passes 3883 of 3883 tests at head 9e4790266a, on main b11c7bf84f, which passes 3882 of 3882 on the same machine. The new guest_libressl3_x509_algor fails against main's throwing stub and checks the cleared value output, which 2.5.4 left untouched. python3 tools/check_conventions.py --base upstream/main passes. Not run on a console or in a title.

Checklist

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5154578911 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15758). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-04T12:53:50Z. --- ### What Implements `X509_ALGOR_get0` in libSceLibreSsl3 as in LibreSSL 4.0.0 [`x_algor.c`](https://github.com/libressl/openbsd/blob/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/asn1/x_algor.c#L239-L264): it clears the value output first, reports `V_ASN1_UNDEF` and a null value for a missing parameter, and reads the identifier only for the outputs requested. `LibreSsl3X509Algor::parameter` becomes a typed `LibreSsl3Asn1Type*`, the 16-byte `ASN1_TYPE` shared by 2.5.4 and 4.0.0, and the `X509_PUBKEY_get0_param` test fixture is updated to match. ### 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 9e4790266a, on `main` b11c7bf84f, which passes 3882 of 3882 on the same machine. The new `guest_libressl3_x509_algor` fails against `main`'s throwing stub and checks the cleared value output, which 2.5.4 left untouched. `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, #14889, #14890, #14992, #15031, #15045, #15119, #15289, #15303, #15472, #15514, #15591, #15616, #15618, #15620, #15622, #15623, #15625, #15627, #15628, #15629, #15631 - [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!15758
No description provided.