feat(libressl): implement certificate verification error strings #10065
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10065"
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 atharvjairath on 2026-10-23T07:54:42Z.
What
Implement
X509_verify_cert_error_string_nid_postfix, so callers receive the LibreSSL 2.5.4 diagnostic instead of an unsupported-export exception. The implementation covers all 54 named messages, the numeric fallback (including code 1 and newer error codes), low-32-bit lookup with a 64-bit guest argument, and the shared fallback-buffer lifetime.The contract comes from LibreSSL 2.5.4 x509_txt.c and its error constants. Published firmware 13.40 measurements identify libSceLibreSsl as 2.5.4. I have not independently measured this export on a console; that limitation and the upstream shared-buffer concurrency restriction are recorded in the existing debt file.
The existing progress scanner counts one additional completed export (libSceLibreSsl: 23 to 24 of 399), approximately +0.009 percentage points overall. This is a function-coverage measure, not a game-compatibility claim. No dependency on #10047 or #10056.
Tested
Tested head:
30ab85a8db3496c937d4f701bdd28c1c365524df, rebased onto maine3d03fbae64e1b49e5d4e84e753ccce6edf60da5after #9047 merged. Main's DES implementation, test registration and debt entry are preserved; pending-export counts are reconciled. The original PR head is retained as a local recovery reference.not implementedexception before implementation. This refresh reruns the complete focused suite on the head above.git diff --checkpass. The refreshed overlap scan reports debt-count conflicts with #10005/#10151. I inspected the shared-file diffs of base-conflicted #9033/#9041/#9446/#9448/#9529/#9571/#9745/#9870/#9942/#9949/#9970 and the other two independent LibreSSL follow-ups: none implements this PR's exports. Shared include declarations, CMake test insertions and debt counts will need reconciliation as those PRs land. The scan also lists this PR's pre-rebase revision as a self-comparison; that is not competing work.These are focused builds of the real libSceLibreSsl, libSceLibreSsl3 and complete libc targets. They now configure main's SSL backend to build the repository-pinned mbedTLS crypto dependency from source, alongside pinned ZArchive/zstd; there are no library-behavior or exception-sentinel mocks. Whole-project configuration remains blocked by uninitialized SDL2 and missing XRandR development support. No whole-project, native Windows desktop, title or console run is claimed. A collaborator must dispatch the upstream Build workflow for full Linux/Windows CI.
Focused runtime build recipe
Use the following CMake project outside the source tree, with the repository-pinned ZArchive, zstd and mbedTLS checkouts under its
3rdparty/directory (mbedTLS068ff080b369adfac81509f9b57b2afabaf82dc5, including its pinned framework submodule):Configure with
-DANYPS5_SOURCE_ROOT=<checkout> -DCMAKE_BUILD_TYPE=Release, build, then runctest --test-dir <build> --output-on-failure. On Linux in this environment,CMAKE_CROSSCOMPILING_EMULATORpoints to QEMU x86-64. Windows uses WinLibs GCC 15.2.0 UCRT r7; the Windows test executables run through Wine 9 under QEMU, with the build directory, both LibreSSL library directories and the WinLibs bin directory onWINEPATH. Each test keeps its repository timeout.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)