Repository navigation
feat(libSceLibreSsl3): name 116 unknown additional exports from their NIDs - #13831
adriadam10 merged 2 commits into
Conversation
… NIDs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Progress report (474030e → 457dc15)➖ System libraries: 26.18% (+0.0%, +116 declared, -116 removed functions) 🆕 116 declared as stubs
🗑️ 116 removed
Changed libraries (implemented exports)
|
|
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.
|
…ments unnamed BN_is_negative, EVP_CIPHER_nid and RSA_bits keep their NID aliases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
#14008 implements |
|
Checked every renamed export: the |
…rams Port both getters from LibreSSL 4.0.0 rsa_lib.c: each output pointer is optional, outputs are written in upstream's order, and the key is read through the existing LibreSsl3Rsa layout, whose p, q, dmp1, dmq1 and iqmp offsets are now pinned to rsa_local.h. A null key with a requested output, which upstream dereferences, throws. The additional export inventory now counts the names boykopovar#13831 added: 174 callable exports, 164 named and 10 known only by NID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rams Port both getters from LibreSSL 4.0.0 rsa_lib.c: each output pointer is optional, outputs are written in upstream's order, and the key is read through the existing LibreSsl3Rsa layout, whose p, q, dmp1, dmq1 and iqmp offsets are now pinned to rsa_local.h. A null key with a requested output, which upstream dereferences, throws. The additional export inventory now counts the names boykopovar#13831 added: 174 callable exports, 164 named and 10 known only by NID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rams Port both getters from LibreSSL 4.0.0 rsa_lib.c: each output pointer is optional, outputs are written in upstream's order, and the key is read through the existing LibreSsl3Rsa layout, whose p, q, dmp1, dmq1 and iqmp offsets are now pinned to rsa_local.h. A null key with a requested output, which upstream dereferences, throws. The additional export inventory now counts the names boykopovar#13831 added: 174 callable exports, 164 named and 10 known only by NID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 feat(libSceLibreSsl3): implement EVP_CIPHER_nid, BN_is_negative and RSA_bits #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 feat(libSceLibreSsl3): implement EVP_CIPHER_key_length and EVP_CIPHER_iv_length #13659 removes (EVP_CIPHER_iv_length,EVP_CIPHER_key_length).i2d_PUBKEYborders theX509_VERIFY_PARAM_set_flagsrow that feat(libSceLibreSsl3): implement X509_VERIFY_PARAM_set_flags #13662 removes.AES_wrap_keyandECDSA_SIG_freeborder theEVP_MD_CTX_mdrow that feat(libSceLibreSsl3): implement EVP_MD_CTX_md #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