feat(libSceLibreSsl3): name 116 unknown additional exports from their NIDs #13831
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13831"
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 CodingBreadd on 2026-10-31T08:41:39Z.
What
Names 116 of the 126
Unknown_*_nid_no_patchexports in libSceLibreSsl3'sAdditionalExports.cpp. Each new name is the LibreSSL identifier whosetools/nid_names.pyhash equals the stub's NID; candidates were every identifier in the LibreSSL 3.8.4 and 4.0.0include,crypto,sslandtlssources. Examples:SSL_CTX_set_ciphersuites,SSL_provide_quic_data,X509_digest,EVP_PKEY_derive,BIO_meth_new,RSA_set0_key,tls_handshake.Every renamed export still throws through
NotImplemented_nid_no_patch, keeps the no-parameter import-resolution convention and carries_nid_postfix. The stubs are renamed in place in the unknown sections ofAdditionalExports.cppandinclude/Api.hpp, so each keeps its single declaration. Missing-import and unimplemented-call errors now name the function instead of the NID. In the debt table the 116 rows get their names, and a new entry records that a name match does not establish LibreSSL's prototype or behavior.Left out:
BN_is_negative,EVP_CIPHER_nidandRSA_bitsalso hash to their NIDs, but #14008 implements them.ERR_print_errors_fp,ERR_load_ERR_stringsandECDSA_do_verifyalso hash to their NIDs, but their debt table rows border the rows #13659 removes (EVP_CIPHER_iv_length,EVP_CIPHER_key_length).i2d_PUBKEYborders theX509_VERIFY_PARAM_set_flagsrow that #13662 removes.AES_wrap_keyandECDSA_SIG_freeborder theEVP_MD_CTX_mdrow that #13663 removes.PBYz0kpXwg8hashes to no identifier of those sources.No other open pull request names or defines any of the 116 names in any library.
tools/pr_overlap.pyfound 23 open PRs sharing files with this branch and no shared exports among the 10 it could compare. The other 13 already conflict withmain: #9571, #9970, #10461, #10557, #10631, #10960, #12315, #12578, #12580, #12582, #12754, #12928 and #12945. Compared by hand, their hunks ininclude/Api.hppand the debt file change named stubs, signatures and other entries; none touches anUnknown_declaration, anunknowntable row or any of the 116 names or NIDs. No open PR changes the unknown section ofAdditionalExports.cpp. #10490's debt text saysRSA_set0_keyis not declared; that PR neither declares nor renames the stub, and its sentence goes stale once this merges.Tested
Windows 11, WinLibs GCC 15.2.0 (UCRT, POSIX, SEH). Built
libSceLibreSsl3and the patchedlibSceLibreSsl3.prxonmainand on this branch; the patched export table holds the same 665 NIDs as onmain, and only the 116Unknown_*_nid_no_patchalias names are gone.ctest -R "guest_crypto_memcmp|guest_libressl3_": 5/5 passed. Thepublic_headersaudit (393 libraries, 24655 exports), run directly because it exceeds its 90 s CTest limit on this loaded machine, passed;ctest -R public_headers_compile: 61/64 passed, and batches 19, 20 and 21, which exceeded their 30 s CTest limit, passed when run directly with the CTest command lines.tools/check_conventions.py --base origin/mainpasses. No title tested.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)🤖 Generated with Claude Code