feat(libSceLibreSsl3): implement ASN1_TIME_new and X509_gmtime_adj #15765

Merged
alvaroelpob merged 6 commits from upstream-pr/15765 into main 2026-11-09 12:47:09 +00:00
alvaroelpob commented 2026-11-04 13:31:18 +00:00 (Migrated from github.com)

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


What

Implements the libSceLibreSsl3 ASN1_TIME_new and X509_gmtime_adj exports as in LibreSSL 4.0.0. ASN1_TIME_new returns an empty multi-string ASN1_TIME from the guest heap. X509_gmtime_adj writes the current time plus an offset as UTCTime for 1950 to 2049 and as GeneralizedTime otherwise, into the given string or a new one.

Tested

Full suite on ecb162375b (Linux): 3883/3883 passed, including the new guest_libressl3_time_new test. It covers ASN1_TIME_new and its allocation failure, X509_gmtime_adj against the host clock, reuse of an existing string, both allocation failures, the UTCTime and GeneralizedTime boundaries at 1950 and 2050, years 0 and 9999, and out-of-range offsets. check_conventions passes.

Checklist

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5155124956 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15765). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-04T13:31:18Z. --- ### What Implements the libSceLibreSsl3 ASN1_TIME_new and X509_gmtime_adj exports as in LibreSSL 4.0.0. ASN1_TIME_new returns an empty multi-string ASN1_TIME from the guest heap. X509_gmtime_adj writes the current time plus an offset as UTCTime for 1950 to 2049 and as GeneralizedTime otherwise, into the given string or a new one. ### 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. --> Full suite on ecb162375b (Linux): 3883/3883 passed, including the new guest_libressl3_time_new test. It covers ASN1_TIME_new and its allocation failure, X509_gmtime_adj against the host clock, reuse of an existing string, both allocation failures, the UTCTime and GeneralizedTime boundaries at 1950 and 2050, years 0 and 9999, and out-of-range offsets. check_conventions passes. ### 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, #14465, #14889, #14890, #14992, #15031, #15045, #15119, #15232, #15289, #15303, #15406, #15449, #15472, #15591, #15616, #15618, #15620, #15622, #15623, #15624, #15625, #15627, #15628, #15629, #15631, #15758, #15760, #15761 - [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!15765
No description provided.