Repository navigation
feat(libSceLibreSsl3): implement X509_cmp_current_time - #17243
fishingpvalues wants to merge 11 commits into
Conversation
dd2f0fc to
4fad165
Compare
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
gabichuuuuu
left a comment
There was a problem hiding this comment.
Read against the LibreSSL in 3rdparty/libressl-openbsd (078b3d1d), which is what this module follows. I haven't built or run this branch.
Differences from X509_cmp_time (x509/x509_vfy.c):
- Equal times. LibreSSL returns
-1for "the same as now". Its comment reads "0 is used for error, so map same to less than". Herevalue == nowreturns 0, which the caller reads as an error. - The
typefield is ignored. LibreSSL parses with the string's type and applies RFC 5280: a UTCTime must be 13 characters and a GeneralizedTime 15, and a GeneralizedTime before 2050 is rejected. Here any 13- or 15-character string is accepted whatever its type. For example, type 24 with"20200101000000Z"gives 0 in LibreSSL and-1here. - Day check.
std::chrono'sdate.ok()rejects 31 February,"260231000000Z", which returns 0 here. LibreSSL compares the parsed fields without validating the day.
Debt file: compared with main, this branch's docs/dev/debt/libSceLibreSsl3.md drops a BIO_meth line that main now has (src/BioMethod.cpp, #15761), and it repeats the new bullet on two consecutive lines. It looks rebased from an older copy of the file.
4fad165 to
adf31e8
Compare
|
Fixed all three differences and the debt file.
Rebased onto Test: |
…mp-current-time * origin/main: fix(libSceLibreSsl3): restore the p_lib.c licence notice in Key.cpp feat(libSceLibreSsl3): implement EVP_PKEY_get0_EC_KEY fix(libSceUsbStorageDialog): validate copied base parameters against guest address in sceUsbStorageDialogOpen fix(libSceCommonDialog): support guest address override in ValidateCommonDialogBaseParam docs(dev): document sceUsbStorageDialogOpen pointer validation in technical debt test(libSceUsbStorageDialog): verify invalid guest pointer rejection in sceUsbStorageDialogOpen fix(libSceUsbStorageDialog): validate guest parameters readability in sceUsbStorageDialogOpen fix(libkernel_sys): safely copy out compiled SDK versions feat(libSceNpManager): implement the Push and Push2 lifecycle feat(libc): export the Dinkumware _Mbrtowc and _Wcrtomb helpers feat(libSceSystemService): answer two ShellCoreUtil calls as firmware 13.42 does feat(libSceNpCommon): implement sceNpGetNavSdkVersion
|
Head
Tested on Linux x86-64, Release:
Not run: Windows. |
…mp-current-time * origin/main: (392 commits) feat(libSceNKWebKit): implement WebCore::CookieUtil::defaultPathForURL test(prx): drop asserts that pin unimplemented throws feat(libSceNKWebKit): implement WebCore::parseCacheControlDirectives fix(prx): implement firmware 4.03 contracts for four exports test(libSceFreeTypeOt): keep the size-metrics sentinels inside a 32-bit FT_Long refactor(libSceFreeTypeOt): call the bundled FreeType for the size metrics ci(linux): prefetch the FFmpeg prebuilt with retries ci(build): allow ninety minutes for a Windows dispatch that runs every test refactor(prx): leave the LibcInternal stubs boykopovar#16005 and boykopovar#16024 touch unnamed feat(libSceLibreSsl3): implement SSL_CTX_set_timeout fix(shader): follow chained predicate metadata replacements perf(libSceAgcDriver): raise the default dispatch cache budget fix(tests): include the InventoryExports6 header instead of redeclaring the deleting destructors feat(shader): accept SDWA destination selects on f32 rounding and frexp ops fix(agc): keep the driver window compare inside its image feat(shader): accept SDWA destination selects on v_cvt_f32_ubyte0..3 test(shader): drop the cvt_norm_f16 SDWA refusal cases for valid forms feat(shader): implement SDWA for v_cvt_norm_i16_f16 and v_cvt_norm_u16_f16 test(shader): allow 2 ulp on v_log_f32 results below 1.0 in the SDWA exp/log test feat(shader): support SDWA destination selectors on v_exp_f32, v_log_f32 and v_rcp_iflag_f32 ... # Conflicts: # docs/dev/debt/libSceLibreSsl3.md
|
Merged latest Tested on Linux x86-64, Release, against the merged tree:
|
…mp-current-time * origin/main: (59 commits) test(tools): cover BOM header package paths fix(tests): build the timed-join exe that stages the MinGW runtime for the import tests fix(tests): opt the FreeType allocator test out of Windows runtime staging fix(tools): add tests directory to sys.path in test_trace_intervals_csv fix(tools): add tests directory to sys.path in test_audit_strict_partial fix(tools): add tests directory to sys.path in test_annotation_symbols_json fix(tools): add tests directory to sys.path in test_ab_split_csv test(web): default test suite root path to parent directory when unprovided test(tools): verify tracked repository JSON files are unignored chore(gitignore): unignore tracked tools/input-mapper/package.json build(cmake): set explicit ctest timeouts for conventions_pr_template and relinker_fuzz_seeds feat(libSceFontFt): implement sceFontFtSupportFontFormats docs(debt): update the FreeType allocator note for the Ol Alloc and Free fix(libkernel): declare GUEST_EIO for every platform test(prx): pin all four u16 fields of the glyph-selection record fix(prx): implement decoded font support and selection contracts test(ngs2): distinguish PS4 custom control expectations test(ngs2): guard Delay control checks in the PS4 library fix(tests): opt the remaining patched-path test executables out of runtime staging fix(tests): opt LibreSSL patched-variant tests out of runtime staging ... # Conflicts: # core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp # core/libs/prx/libSceLibreSsl3/include/Api.hpp # docs/dev/debt/libSceLibreSsl3.md
…mp-current-time * origin/main: docs(libkernel): pin the FreeBSD link in the SO_LINGER datagram entry feat(libSceNKWebKit): implement WKConnection message posting and client configuration feat(libSceNet): support SO_LINGER in sceNetSetsockopt and sceNetGetsockopt test(libharfbuzz): apply the complete NID runtime search path fix(libharfbuzz): skip guards for unused tag outputs test(libharfbuzz): patch the complete layout test context build(libharfbuzz): isolate layout test patching build(libharfbuzz): scope layout test dependencies test(libharfbuzz): cover refused guest output scopes docs(libharfbuzz): clarify opaque face validation limits feat(libharfbuzz): implement OpenType layout queries feat(libSceLibreSsl3): implement HMAC_CTX_new and HMAC_CTX_free # Conflicts: # docs/dev/debt/libSceLibreSsl3.md
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
…mp-current-time * origin/main: (282 commits) docs(libSceLibreSsl3): recount additional exports after rebase fix(libSceLibreSsl3): leave the three loaders to boykopovar#17246 feat(libSceLibreSsl3): return from seven calls as firmware 13.42 does fix(tools): leave a title's executables out of its module directories fix(tools): stage every ELF or SELF module and empty module directories fix(tools): stage a title's --module-dir modules in title runs docs(libSceLibreSsl3): record EVP_PKEY_base_id test(libSceLibreSsl3): check that EVP_PKEY_base_id maps aliases to the LibreSSL 4.0.0 base methods feat(libSceLibreSsl3): implement EVP_PKEY_base_id feat(libSceLibcInternal): implement __std_bitset_to_string_1 and _2 fix(main): retry the storage refresh runs of label_ordered_flush until one takes the ordered flush test(libSceFreeType): expect an invalid face handle for a null face fix(libSceFreeType): reject a null face before FreeType sets variation coordinates feat(libcinternal): implement float and double min/max vector helpers feat(libSceLibreSsl3): implement X509_STORE_CTX_new, free, get0_param and X509_STORE_up_ref test(libc): let the file stream owner release its pointer on Windows fix(cmake): report the fuzzer and TSAN conflict before the TSAN platform check test(libwebrtc): check rtc::RateTracker rounding with an odd bucket width feat(libwebrtc): implement rtc::RateTracker feat(libSceLibreSsl): implement BN_print ... # Conflicts: # docs/dev/debt/libSceLibreSsl3.md
…mp-current-time * origin/main: test(relinker): extend signed LEB128 displacement fuzzing and overflow checks
main merged another X509_cmp_current_time implementation in src/X509CmpTime.cpp (boykopovar#15620). Keep that file and its test target, replace the implementation with this branch's review-fixed field comparison, merge the test cases, and drop the duplicate X509CmpCurrentTime files.
|
Merged latest While resolving the conflict: Behaviour from the review fixes is unchanged: equal times return Debt: kept Tested on Linux x86-64, Release, against the merged tree:
Not run: Windows, a console or a title. |
|
@fishingpvalues I reviewed a5bec67. |
|
@fishingpvalues X509_cmp_current_time in libSceLibreSsl3 is already on main: #15620 merged it on 11-10 as src/X509CmpTime.cpp with its own test and debt entry. This PR no longer adds the export, it rewrites main's version, and neither side has a console measurement behind it. The rewrite accepts any day from 1 to 31 where main checks the date with std::chrono::year_month_day, so a time like 210229000000Z is now a valid time, and it throws on a null time where main returns 0. I am closing it as already on main. If you have a console run showing that main's answers for a null time or an impossible date are wrong, a PR with that run is welcome. |
What
feat(libSceLibreSsl3): implement X509_cmp_current_time. The implementation and its technical-debt entry are in this branch; the export leaves
AdditionalExports.cppand gains its real signature ininclude/Api.hpp.Tested
Linux x86-64 (CachyOS, GCC 16.2.1), Release,
BUILD_TESTING=ON, basemainf35f1e5eca:cmake --build build --target guest_libressl3_x509_cmp_current_time_tests --parallel 4: passed.ctest --test-dir build -R '^guest_libressl3_x509_cmp_current_time$' --output-on-failure: 1/1 passed.python3 tools/check_conventions.py --base origin/main: passed.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