feat(libSceLibreSsl3): implement X509_cmp_current_time #15620
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15620"
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 alvaroelpob on 2026-11-03T22:08:42Z.
What
Implements
X509_cmp_current_timein libSceLibreSsl3, following LibreSSL 4.0.0X509_cmp_time: the RFC 5280 time is compared with the current time and the result is -1 when it is not later, 1 when it is later and 0 when the time is invalid.Tested
Linux x86-64 (WSL2), Release: the full build passes and
ctest --test-dir build -j16passes 3829 of 3829 tests, including the newguest_libressl3_x509_cmp_time.python3 tools/check_conventions.py --base upstream/mainpasses. Not run on a console or in a title.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-04T02:31:36Z.
Review: APPROVED
@alvaroelpob thanks. I compared the parser with LibreSSL 4.0.0 at the commit you cite,
asn1_time_parse_cbsandASN1_time_parseinasn1/a_time_tm.cplusx509_verify_asn1_time_to_time_tinx509/x509_verify.c, and the rules match:typethat differs from the length's format fails;x509_verify.clines 63-66);Zfail;X509_cmp_time_internal.What I ran: head
e18f8216demerged ontomain1c8c0efc8c, Windows 11, WinLibs GCC, Release:guest_libressl3_x509_cmp_timeandpublic_headerspass (2 of 2);year < 2050rejection disabled:guest_libressl3_x509_cmp_timefails;tools/check_conventions.py --base upstream/mainon the head: all checks passed;tools/pr_overlap.py --branch: no shared exports. None of the 10 PRs it couldn't compare addsX509_cmp_current_time.As on #15618, your open LibreSsl3 PRs conflict with one another on the export count line and adjacent lines in
CMakeLists.txtand the debt file.Approving.