feat(libSceLibreSsl3): implement X509V3_set_ctx #15629
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15629"
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:27:20Z.
What
Implements
X509V3_set_ctxin libSceLibreSsl3. As in LibreSSL 4.0.0x509_conf.c, it stores the issuer, subject, request, CRL and flags in the caller's 48-byteX509V3_CTXfrom the public 4.0.0x509v3.hand leavesdbalone.Tested
Linux x86-64 (WSL2), Release: the full build passes and
ctest --test-dir build -j16passes 3829 of 3829 tests, including the newguest_libressl3_x509v3_context.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 XairRrR on 2026-11-03T23:09:20Z.
Review: APPROVED
Reviewed — approved
X509V3_set_ctxmatches the LibreSSL 4.0.0 code the PR cites, and the new test passes on the merged tree. The test also fails when the export is reverted tomain's throwing stub. I found no issues.What I ran
Head
197ead80f3e9cfad89eec9a637c0d4267c4c7e3e,main1c8c0efc8c41314402e6966da5bef6ea3d639d10, merged with--no-ffinto treea8c7d326a531b6deed1b20325d83a029bc47e166. Debian 13 VM, GCC 14.2.0, Release, Ninja.Results
git diff --checkcheck_conventions.pylibs(script)unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group: fails onmaintoo, unrelated to this PRguest_libressl3_x509v3_contextpublic_headersx509_conf.cL430–L440 isX509V3_set_ctxand sets issuer, subject, CRL, request and flags. It does not touchdb.x509v3.hL123–L131 isstruct v3_ext_ctx { int flags; X509 *issuer_cert; X509 *subject_cert; X509_REQ *subject_req; X509_CRL *crl; void *db; }. This matches the new struct and itsstatic_asserts.Negative control
I replaced the body of
core/libs/prx/libSceLibreSsl3/src/X509V3Context.cppwithNotImplemented_nid_no_patch(__func__), which is whatmaindoes for this export. After a rebuild the test failed as expected:Output
I then restored the merged file and rebuilt; the test passed again, and
git status --porcelainwas empty.Findings
Blocking
None.
Non-blocking
None.
Notes from reading the code:
libressl-openbsdsubmodule is an older LibreSSL whose context still hasdb_methbeforedb. This does not affect the implementation:dbordb_meth.throw(core/libs/prx/libSceLibreSsl3/src/X509V3Context.cpp:7) follows the library's existing rule that inputs on which LibreSSL would fault throw instead.AdditionalExports.cpp.Not verified
WIN32PATHsetting for the new test.