Repository navigation
feat(libSceLibreSsl): answer the ENGINE calls with an empty engine list - #10878
oneandonlydean merged 31 commits into
Conversation
…E and ex_data init calls SSL_library_init returns 1, and SSL_load_error_strings, OBJ_cleanup, PKCS12_PBE_add and CRYPTO_cleanup_all_ex_data return nothing, as in LibreSSL 2.5.4. None of them changes state an export reads here: no cipher or digest lookup by name is exported, ERR_error_string and OBJ_create still throw, and no ex_data index can be created. PKCS12_PBE_add is empty in that release.
LibreSSL 2.5.4's only built-in engine, padlock, is compiled out by OPENSSL_NO_HW_PADLOCK in both of its portable builds, and the module exports no call that adds an engine, so the list stays empty. ENGINE_get_first returns null and ENGINE_load_builtin_engines and ENGINE_cleanup do nothing. ENGINE_by_id pushes ENGINE_R_NO_SUCH_ENGINE for an id and ERR_R_PASSED_NULL_PARAMETER for null. ENGINE_get_next, ENGINE_init, ENGINE_finish, ENGINE_free, ENGINE_ctrl, ENGINE_ctrl_cmd and ENGINE_load_private_key push ERR_R_PASSED_NULL_PARAMETER for a null engine, or for a null command name in ENGINE_ctrl_cmd, and return null or 0. Every error uses LibreSSL's function code 0xfff. A non-null engine throws, since none can exist.
Progress report (f53ddbc → 8d0d053)📈 System libraries: 27.91% (+0.01%, +4 implemented functions) ✅ 4 implemented
⚪ 3 behaviourally empty (constant return or throw)
Changed libraries (implemented exports)
|
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
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.
|
|
I am checking the engine-list assumption against the console module and its available evidence. The LibreSSL portable build configuration shows the padlock engine can be compiled out, but does not by itself establish that the PS5 module has no built-in or dynamically registered engines. The debt entry correctly records that possibility as unresolved, while these exports now return an empty-list result and |
|
One additional process point: #10475 is still open, and its patch adds adjacent no-op runtime exports and edits the same |
Main's boykopovar#10005 and this branch both change the pending-exports count in the debt file. The merge counts what is left: Export.cpp now has 332 NotImplemented exports, main's 348 less this branch's 16. It keeps this branch's ERR and ENGINE entries and main's new ASN1 entries.
Main's boykopovar#10071 and this branch both change the pending-exports count in the debt file. The merge counts what is left: Export.cpp now has 329 NotImplemented exports, main's 345 less this branch's 16.
Main's boykopovar#10484 rewrites the digest entry right after the pending-exports count this branch sets; the merge keeps both. Export.cpp still has 329 NotImplemented exports.
ahmadmuj
left a comment
There was a problem hiding this comment.
Reviewed head 6415537 merged locally onto main a7a2eec (merge 696f8b4512). The only conflict is the pending count in the debt file, next to main's Digest edit; 329 is still right after the merge. Linux, gcc. No console, so nothing here says what the PS5 module itself does.
What I ran:
ctest -R guest_libresslon the merge: 10/10 pass.guest_libressl_errorandguest_libressl_runtimealso pass 5 repeats each.- Your two test files on main:
GuestLibreSslError.cppdoesn't compile against the old(void)declarations, andguest_libressl_runtimeaborts withSSL_library_init_nid_postfix not implemented. tools/check_conventions.py --base origin/main: passes.- A small C probe linked statically against stock LibreSSL 2.5.4 (portable tarball,
libcrypto.a+libssl.a), replaying your ENGINE and init blocks with the same arguments. Every line matches your test:ENGINE_get_firstis NULL before and afterENGINE_load_builtin_enginesand afterENGINE_cleanup, with no error.ENGINE_by_id("dynamic")gives NULL and one0x26fff074."padlock","openssl"and"rdrand"do the same.- A null id or engine for
by_id,get_next,init,finish,free,ctrl,ctrl_cmdandload_private_keyreturns 0/NULL and pushes exactly one0x26fff043. So doesENGINE_ctrl_cmd(e, NULL, ...), since 2.5.4 checkseandcmd_namebefore anything else (eng_ctrl.c:265-268). SSL_library_initreturns 1 both times, with no error.
On MarcZX10's engine-inventory question, one more data point. The OpenBSD in-tree build at 2e2c612066 (the commit your debt entries link) also sets -DOPENSSL_NO_HW_PADLOCK (src/lib/libcrypto/Makefile:24, # XXX enable this?). It leaves eng_padlock.c out of SRCS, and Symbols.list has no ENGINE_load_padlock. Even if padlock were compiled in, eng_padlock.c:102-107 only defines COMPILE_HW_PADLOCK for i386, so on amd64 ENGINE_load_padlock does nothing. Neither upstream 2.5.4 build has a built-in engine on amd64. That doesn't rule out Sony adding one, and I can't check that.
Findings:
-
The five init calls hit the same question as #10475. There, the change request asks to keep
OPENSSL_add_all_algorithms_noconfand friends throwing because 2.5.4 does real work in them.SSL_library_initis the same kind of call. In 2.5.4 it runsEVP_add_cipher/EVP_add_digestandssl_load_ciphers(ssl/ssl_algs.c:66-129). In the probe,EVP_get_cipherbyname("aes-128-cbc")andEVP_get_digestbyname("sha256")go from NULL to non-NULL across it.SSL_load_error_stringschangesERR_error_string(0x26fff074)fromlib(38):func(4095):reason(116)toengine routines:CRYPTO_internal:no such engine. Your point that nothing exported reads this state yet holds on the merge:ERR_error_string,SSL_CTX_newandPEM_read_bio_PrivateKeyall still throw. But it's the same trade-off #10475 is blocked on, so it's probably worth settling both PRs the same way. Either way, the ENGINE half stands on its own. -
Small debt wording fix: "no
*_get_ex_new_indexis exported" isn't quite right.SSL_CTX_get_ex_new_indexandSSL_get_ex_new_indexare exported (Export.cpp:951 and :1176). They still throw, so the conclusion holds. Maybe "every*_get_ex_new_indexexport still throws".
Main's boykopovar#9949 adds Ocsp.cpp to the library sources next to this branch's Engine.cpp, and its OCSP entry after this branch's ENGINE entry; the merge keeps both. The ERR entry keeps this branch's sentence that the ENGINE calls are the only exports that add an error, since the OCSP string calls add none. With boykopovar#9949's three exports implemented, Export.cpp has 326 NotImplemented exports, and the pending-exports count says 326.
…nd ex_data init calls throwing LibreSSL 2.5.4, the version the debt entries name, does real work in SSL_library_init, which registers the ciphers and digests (ssl/ssl_algs.c), and in SSL_load_error_strings, which loads the error strings. A call that does nothing is not that behaviour, so both throw again until it is implemented. OBJ_cleanup, PKCS12_PBE_add and CRYPTO_cleanup_all_ex_data go back with them, so the init calls are settled together. The ENGINE calls keep their answers. This reverts ca6f5d1. Export.cpp has 331 NotImplemented exports, and the pending-exports count says 331.
|
@ahmadmuj thank you, the probe is exactly the evidence this PR needed. Finding 1: agreed. In 2.5.4 @MarcZX10 on the engine inventory: ahmadmuj's probe, linked statically against stock LibreSSL 2.5.4, gets every ENGINE result this PR's tests expect, and no 2.5.4 build has a built-in engine on amd64 (padlock is compiled out, and compiles only for i386). It isn't a console measurement, and the debt entry still says a console build with its own engines isn't ruled out. Could you both take another look? |
|
@MarcZX10 @EagleBearerYS firmware 13.42 data on the engine-inventory question, from the decrypted
Per the disassembly (not run), nothing in the module can add an engine:
|
|
@BunnyFl thank you, that answers the engine-inventory question from the module itself: all 21 results and error codes match @MarcZX10 @ahmadmuj, this is the firmware data for the engine-inventory question. On the overlap with #10475: this PR now goes after it, recorded under Depends on, with a note in its thread. Could you take another look? |
✅ AMD GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (4 IDs in 472 tests)Skipped (6)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (4, not counted against this PR)Validation IDs already present on main (4 IDs in 553 tests)Skipped (8)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
# Conflicts: # core/libs/prx/libSceLibreSsl/CMakeLists.txt
What
Implements the 11 libSceLibreSsl ENGINE exports from LibreSSL 2.5.4, the version the module's other calls follow (firmware 13.40 measurements):
OPENSSL_NO_HW_PADLOCK, which removes the only built-in engine, and the module exports no call that adds one.ENGINE_get_firstreturns null,ENGINE_by_idpushesENGINE_R_NO_SUCH_ENGINE, and a null engine (or command name) pushesERR_R_PASSED_NULL_PARAMETERwith function code 0xfff onto the existing error queue. A non-null engine throws.UI_OpenSSLstill throws.mainnow implements the other calls this paragraph named:SSL_library_initin LordVersA's #11662,UI_set_result,SSL_load_error_strings,OBJ_cleanupandPKCS12_PBE_addin #12601, andCRYPTO_cleanup_all_ex_datain #8826. This PR doesn't change them.Related: #10475 (the configuration and algorithm registration calls, where the review asks for the same as the init calls here: throws until their 2.5.4 work is implemented), #10376 and #10486 (the UI objects
UI_OpenSSLwaits on), #9535, #9536 and #9571 (ERR_error_string, which would give the codes the ENGINE calls push their text).Tested
guest_libressl_error,guest_libressl_runtimeandguest_libressl_x509_errorspass 10 of 10 on Linux and on Windows, 0 skipped.guest_libressl_errorcovers every ENGINE call; against main's behaviour its 13 of 13 cases fail.main451e21f (run).main's feat(libSceLibreSsl): implement ASN.1 integer and string helpers #10005 and this PR both change the pending-exports count indocs/dev/debt/libSceLibreSsl.md; the merge counts what is left, 332, which ismain's 348 less this PR's 16 and the number of calls inExport.cppthat still throw. It keeps this PR's ERR and ENGINE entries besidemain's new ASN1 ones. The PR's code diff is unchanged. Theguest_libressltests andpublic_headerspass 10 runs in a row. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 10 run, 10 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maine05ba6f (run).main's feat(libressl): implement cipher metadata queries #10071 and this PR both change the pending-exports count in the LibreSSL debt file. The merge counts what is left:Export.cppnow has 329NotImplementedexports,main's 345 less this PR's 16, and nothing else conflicted. Theguest_libressltests andpublic_headerspass 10 runs in a row. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 11 run, 11 pass, 0 skip, 0 fail. The before arm,mainwith this PR's tests, doesn't build. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.libcrypto.aandlibssl.a, replaying this PR's ENGINE calls with the same arguments, gives every result its tests expect.ENGINE_get_firstis null before and afterENGINE_load_builtin_enginesand afterENGINE_cleanup, with no error;ENGINE_by_idgives null and one0x26fff074fordynamic,padlock,opensslandrdrand; a null id or engine for each call returns 0 or null and pushes exactly one0x26fff043, as doesENGINE_ctrl_cmdwith a null command name. The OpenBSD tree the debt entries link also builds without padlock (-DOPENSSL_NO_HW_PADLOCK), and padlock compiles only for i386, so no 2.5.4 build has a built-in engine on amd64. Not a console measurement: an engine Sony added would not show here. On 6415537 merged ontomaina7a2eec,ctest -R guest_libresslpassed 10 of 10.main2e1c722 and 8a29e08 (run).main's fix(libSceLibreSsl): follow LibreSSL 2.5.4 and 4.0.0 for null digest buffers and SHA-512/t lengths #10484 rewrote the digest entry next to the pending-exports count, and feat(libSceLibreSsl): implement the OCSP status and reason strings #9949 addedOcsp.cppto the library's sources and its OCSP entry next to this PR's ENGINE entry; both merges keep both sides, and the ERR entry keeps this PR's sentence that the ENGINE calls are the only exports that add an error. Theguest_libressltests andpublic_headerspass 10 runs in a row. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 12 run, 12 pass, 0 skip, 0 fail. The before arm,mainwith this PR's tests, doesn't build. Suites: libc and libkernel pass on Linux (144 and 208) and on Windows (171 and 224). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Export.cpphas 331NotImplementedexports and the pending-exports count says 331. The ENGINE commit is unchanged. Theguest_libressltests andpublic_headerspass 10 runs in a row. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 12 run, 12 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 208) and on Windows (171 and 224). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.libSceLibreSsl.sprx, run by BunnyFl (comment): the decrypted module run natively on a PC, not a console. It runs the module'sDT_INIT, then the sequence of ahmadmuj's probe through the module's own exports, againstEngine.cppfrom f3af853 compiled unchanged, with errors read back through the module's ownERR_get_error. Three runs gave identical results.ENGINE_get_firstreturns null afterDT_INIT, afterENGINE_load_builtin_enginesand afterENGINE_cleanup, with no error.ENGINE_by_idreturns null and queues one0x26fff074for"dynamic","padlock","rdrand","openssl","aesni","sce",""and"x".by_id,get_next,init,finish,free,ctrl,ctrl_cmdandload_private_keyreturns 0 or null and queues one0x26fff043.ENGINE_by_id(NULL)reporting no such engine, are caught.ENGINE_load_builtin_enginesonly runs a one-time init and walks the existing list. The list head is stored to in only two routines, and the one that appends to the list is called only from code nothing in the module refers to. The module exports noENGINE_add: its 13ENGINE_exports are this PR's 11 plusENGINE_get_idandENGINE_set_default.main5e90e75 (run).main's 9a848d0 implements the TLS alert descriptions and lowers the pending-export count indocs/dev/debt/libSceLibreSsl.mdfrom 342 to 341, on the line this PR sets. The merge keepsmain's change and sets the count to 330, theNotImplemented_nid_no_patchexports left in the mergedExport.cpp. Nothing else conflicted, and this PR's other changed lines are the same. The 12guest_libressltests pass 10 runs in a row. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 12 run, 12 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (145 and 210) and on Windows (174 and 231). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main84e91df (run).main's feat(libSceLibreSsl): return the measured version from SSLeay #9745 (SSLeay) lowers the pending-export count indocs/dev/debt/libSceLibreSsl.mdto 340, on the line this PR sets; the merge keeps it and sets 329, theNotImplemented_nid_no_patchexports left in the mergedExport.cpp. Nothing else conflicted, and this PR's other changed lines are the same. Theguest_libressltests with the tests for the files the merge changes, 22 of them, pass 10 runs in a row. Linux: 22 run, 22 pass, 0 skip, 0 fail. Windows: 22 run, 22 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (145 and 211) and on Windows (174 and 232). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main18ef6be (run). alvaroelpob's feat(libSceLibreSsl): implement sk_num, sk_value, sk_pop and sk_pop_free #10373 (sk_*) and feat(libSceLibreSsl): implement UI_METHOD creation and its opener, writer, reader and closer accessors #10376 (UI_create_method) addsrc/Stack.cppandsrc/Ui.cppto theadd_libraryline incore/libs/prx/libSceLibreSsl/CMakeLists.txtthat this PR extends withsrc/Engine.cpp, and lower the pending-export count indocs/dev/debt/libSceLibreSsl.mdto 321, on the line this PR sets. The merge lists all the sources and sets 310, theNotImplemented_nid_no_patchexports left in the mergedExport.cpp. This PR's other changed lines are the same. Theguest_libressltests with the tests for the files the merge changes pass 10 runs in a row. Linux: 91 run, 91 pass, 0 skip, 0 fail. Windows: 89 run, 89 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (145 and 212) and on Windows (174 and 233). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main0cd07dc (run). alvaroelpob's feat(libSceLibreSsl): implement EVP_PKEY_type #10398, feat(libSceLibreSsl): implement the X509_STORE_CTX error, depth, current certificate and chain accessors #10447 and feat(libSceLibreSsl): implement RSA_flags and RSA_size #10449 addsrc/Pkey.cpp,src/X509StoreContext.cppandsrc/Rsa.cppto theadd_libraryline incore/libs/prx/libSceLibreSsl/CMakeLists.txtwhere this PR addssrc/Engine.cpp; the merge keeps all of them. The pending-exports count indocs/dev/debt/libSceLibreSsl.mdsays 313 onmain, whereExport.cpphas 307 calls that throw; the merge sets 296, what the mergedExport.cppleaves. This PR's other changed lines are the same.guest_libressl_error,guest_libressl_runtimeandguest_libressl_x509_errorspass 10 runs in a row. Linux: 3 run, 3 pass, 0 skip, 0 fail. Windows: 3 run, 3 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), and pass inmain's own Windows job at 1829def (job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main04fefeb (run). The one conflict was the pending-exports count indocs/dev/debt/libSceLibreSsl.md:mainreads 300 after JaceTheBlu's feat(libSceLibreSsl): implement X509_LOOKUP_file and X509_STORE_add_lookup #11105 (X509 lookups), and with this PR's implementations the mergedExport.cpphas 289 calls left that go throughNotImplemented_nid_no_patch, so the entry now says 289. This PR's other changed lines are the same.guest_libressl_error,guest_libressl_runtimeandguest_libressl_x509_errorsran 10 times with no failure. Linux: 3 run, 3 pass, 0 skip, 0 fail. Windows: 3 run, 3 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (171 and 289). On Windows libc passes (199), and libkernel passes 309 of 312:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), withmain's code too, and pass inmain's own Windows job at 1829def (job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main0362b15 (run). Two conflicts, both with feat(libSceLibreSsl): implement six sourced LibreSSL 2.5.4 exports #12601, and each keeps both sides:core/libs/tests/GuestLibreSslError.cpp: feat(libSceLibreSsl): implement six sourced LibreSSL 2.5.4 exports #12601's check thatPKCS12_PBE_add,OBJ_cleanupandSSL_load_error_stringsreturn and queue no error comes first, then this PR's ENGINE cases.docs/dev/debt/libSceLibreSsl.md: the pending-exports count.mainreads 293 after feat(libSceLibreSsl): implement six sourced LibreSSL 2.5.4 exports #12601 and JaceTheBlu's feat(libSceLibreSsl): implement X509_VERIFY_PARAM_set1_host #11189, and the mergedExport.cpphas 282 calls left that go throughNotImplemented_nid_no_patch, so the entry says 282.^guest_libressltests ran 10 times with no failure. Linux: 32 run, 32 pass, 0 skip, 0 fail. Windows: 32 run, 32 pass, 0 skip, 0 fail. The libc and libkernel suites run 198 and 304 tests on Linux and 225 and 326 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.mainc12e7e6 (run), which brings JaceTheBlu's feat(libSceLibreSsl): implement OBJ_create and free added objects in OBJ_cleanup #13562 (OBJ_createandOBJ_cleanup). The one conflict was the pending-exports count indocs/dev/debt/libSceLibreSsl.md:mainreads 292 after feat(libSceLibreSsl): implement OBJ_create and free added objects in OBJ_cleanup #13562, and with this PR's implementations the mergedExport.cpphas 281 calls left that go throughNotImplemented_nid_no_patch, so the entry now says 281.CMakeLists.txt,Export.cppandApi.hppmerged without conflicts, and this PR's other changed lines are the same.^guest_libresslandpublic_headersran 10 times with no failure. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 34 run, 34 pass, 0 skip, 0 fail. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main0a148be (run), which brings Ninot1Quyi's fix(libSceLibreSsl): preserve SHA-512 initialization buffers #13820 (SHA-512 initialization buffers) and hyvvs's feat(libSceLibreSsl): free GENERAL_NAME and GENERAL_NAMES allocations #13760 (GENERAL_NAME_freeandGENERAL_NAMES_free).docs/dev/debt/libSceLibreSsl.md, next tomain's new and changed entries. The merge keeps those entries, and every other line comes from the side that changed it.Export.cpptotal, 279NotImplemented_nid_no_patchexports;main's line was 2 above its own total.^guest_libresslandpublic_headers. Linux: 38 run, 38 pass, 0 skip, 0 fail. Windows: 38 run, 38 pass, 0 skip, 0 fail. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main88e804b (0204bff) and 3c3b3cd (68ed652), each followed by a recount of the pending exports (6ea7b38, d593273) (run, on d593273).mainnow has Felipebmaitan's feat(libSceLibreSsl): implement numeric ERR formatting and newest peeking #9535 (error queues) and atharvjairath's feat(libressl): implement X509 extension getters #10078 (X509_EXTENSIONgetters). Two conflicts, both resolved by keeping both sides. Ininclude/Api.hpp, feat(libSceLibreSsl): implement numeric ERR formatting and newest peeking #9535'sERR_error_stringdeclarations sit next to this PR's ENGINE signatures. Indocs/dev/debt/libSceLibreSsl.md, feat(libSceLibreSsl): implement numeric ERR formatting and newest peeking #9535 rewrote theERR_get_errorentry; the merge keeps its text, with this PR's point that the ENGINE calls are the only exports that add an error in place of "or production error producers".mainnow has alvaroelpob's feat(libSceLibreSsl): implement EVP_CIPHER_CTX_init, EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_set_padding #10488 (EVP_CIPHER_CTX). The one conflict was theadd_libraryline inCMakeLists.txt, which now lists feat(libSceLibreSsl): implement EVP_CIPHER_CTX_init, EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_set_padding #10488'ssrc/EvpCipherCtx.cppand this PR'ssrc/Engine.cpp.NotImplemented_nid_no_patchcalls left in each mergedExport.cpp: 273 after the first merge (feat(libSceLibreSsl): implement numeric ERR formatting and newest peeking #9535 and feat(libressl): implement X509 extension getters #10078 implement three each) and 270 after the second (feat(libSceLibreSsl): implement EVP_CIPHER_CTX_init, EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_set_padding #10488 implements three).mainis otherwise unchanged. The^guest_libressltests, withguest_libressl_errorandpublic_headers, pass 10 runs in a row. Linux: 44 run, 44 pass, 0 skip, 0 fail. Windows: 44 run, 44 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (214 and 316) and on Windows (241 and 337). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.mainb28bb77 (run), which brings HQasper's feat(libSceLibreSsl): implement the EVP message digest and HMAC functions #9448 (the EVP message digest and HMAC functions).add_librarysource list inCMakeLists.txt, where feat(libSceLibreSsl): implement the EVP message digest and HMAC functions #9448 addssrc/Evp.cppand this PRsrc/Engine.cpp, anddocs/dev/debt/libSceLibreSsl.md, which keeps feat(libSceLibreSsl): implement the EVP message digest and HMAC functions #9448's new entry.NotImplemented_nid_no_patchcalls left in the mergedExport.cpp:main's 261, which its line now matches, less the 11 this PR implements.mainare the same, and it merges cleanly withmaina4eca2a.^guest_libressltests, withguest_libressl_errorandpublic_headers. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 46 run, 46 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (217 and 319) and on Windows (244 and 340). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main4f41f4c (run), which brings Felipebmaitan's feat(libSceLibreSsl): implement CMAC with AES-CBC methods #9571 (CMAC with the AES-CBC ciphers).CMakeLists.txt'sadd_librarysource list, where both sides add sources; the resolution is the union, each once. Anddocs/dev/debt/libSceLibreSsl.md, in two entries:Export.cpphas 220NotImplementedexports, so the entry now says 220 (this PR said 250,main231);ERR_get_errorentry: this PR said the ENGINE calls are the only exports that add an error, andmainsays Memory BIO and CMAC failures publish to the queue. It now reads "Memory BIO, CMAC and ENGINE failures publish to this queue".^guest_libressltest. Linux: 51 run, 51 pass, 0 skip, 0 fail. Windows: 51 run, 51 pass, 0 skip, 0 fail. The libc and libkernel suites run 300 and 322 tests on Linux and 327 and 342 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main9ab6a28 (run), which brings MatteoSid's feat(libSceLibreSsl): implement EC groups and keys for named curves #10395 (EC groups and keys).CMakeLists.txt'sadd_librarysource list:mainaddssrc/Ec.cppand this PRsrc/Engine.cpp, and the line keeps both;docs/dev/debt/libSceLibreSsl.md: the mergedExport.cpphas 211NotImplementedexports, so the pending-exports entry now says 211 (this PR said 220,main222).^guest_libressltest, withpublic_headers. Linux: 54 run, 54 pass, 0 skip, 0 fail. Windows: 54 run, 54 pass, 0 skip, 0 fail. The libc and libkernel suites run 303 and 327 tests on Linux and 335 and 354 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.mainb611e63 (run), which brings LordVersA's feat(libSceLibreSsl): implement SSL library init #11662 (SSL_library_init).docs/dev/debt/libSceLibreSsl.md, which both sides changed. The mergedExport.cpphad 210NotImplementedexports, so the entry said 210 (this PR said 211,main221). No function is in both PRs, and this PR's other lines are unchanged.^guest_libressltest, withpublic_headers. Linux: 54 run, 54 pass, 0 skip, 0 fail. Windows: 54 run, 54 pass, 0 skip, 0 fail. The libc and libkernel suites run 303 and 329 tests on Linux and 335 and 360 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maind63781e (run), which brings alvaroelpob's feat(libSceLibreSsl): implement EVP_CIPHER_block_size #10450 (EVP_CIPHER_block_size).CMakeLists.txt'sadd_librarysource list, wheremainaddssrc/EvpCipher.cppand this PRsrc/Engine.cpp, and the pending-exports count indocs/dev/debt/libSceLibreSsl.md: the mergedExport.cpphad 209NotImplementedexports, so the entry said 209 (this PR said 210,main220). No function is in both PRs, and this PR's other lines are unchanged.^guest_libressltest (now including feat(libSceLibreSsl): implement EVP_CIPHER_block_size #10450'sguest_libressl_evp_cipher) andpublic_headers. Linux: 55 run, 55 pass, 0 skip, 0 fail. Windows: 55 run, 55 pass, 0 skip, 0 fail. The libc and libkernel suites run 303 and 329 tests on Linux and 335 and 360 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main9f9e420 (run), which brings alvaroelpob's feat(libSceLibreSsl): implement OCSP_response_status and OCSP_single_get0_status #10448 (OCSP_response_status,OCSP_single_get0_status).CMakeLists.txt'sadd_librarysource list, wheremainaddssrc/OcspResponse.cppand this PRsrc/Engine.cpp. The line keeps both.docs/dev/debt/libSceLibreSsl.md. The mergedExport.cpphas 207NotImplementedexports, so the pending-exports entry now says 207 (this PR said 209,main218).^guest_libressltest (now including feat(libSceLibreSsl): implement OCSP_response_status and OCSP_single_get0_status #10448'sguest_libressl_ocsp_response) andpublic_headers. Linux: 56 run, 56 pass, 0 skip, 0 fail. Windows: 56 run, 56 pass, 0 skip, 0 fail. The libc and libkernel suites run 303 and 329 tests on Linux and 335 and 360 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maine772fb2 (run), which brings our feat(libSceLibreSsl): implement the EVP cipher calls on the cipher context #10834 (the EVP cipher calls on the cipher context), StoneDC's test(libSceLibreSsl): model error queue interleavings #12774, test(libSceLibreSsl): expand DES ECB known answers #12775 and test(libSceLibreSsl): guard SHA padding and digest output extents #14283 (tests of error-queue interleavings, DES ECB known answers, and SHA padding and digest extents) and rooklz's fix(libSceLibreSsl): throw the documented exception for faulting lookup and verify-parameter arguments #14717 (the documented exception for faulting lookup and verify-parameter arguments).CMakeLists.txt'sadd_librarysource list, wheremainadds feat(libSceLibreSsl): implement the EVP cipher calls on the cipher context #10834'ssrc/EvpAes.cppand this PRsrc/Engine.cpp. The line keeps both.docs/dev/debt/libSceLibreSsl.md. The mergedExport.cpphas 185NotImplementedexports, so the pending-exports entry now says 185 (this PR said 207,main196).^guest_libressltest andpublic_headers. Linux: 58 run, 58 pass, 0 skip, 0 fail. Windows: 57 run, 57 pass, 0 skip, 0 fail;guest_libressl3_mixed_evpis registered only on Linux. The libc and libkernel suites run 322 and 331 tests on Linux and 353 and 362 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maine772fb2, Mesa 25.2.8. 1,329 passed, 5 failed (none new: 4 also fail onmain, 1 unstable onmain), 8 skipped, with no new validation IDs (642 tests on the GPU).main: de9ec6a (mainbf80054), fbefb5d (c454d7b), e35a93b (8ad0364) and c2913c4 (cd75a62) (×10).OCSP_check_validity), feat(libSceLibreSsl): implement X509_NAME_get_index_by_NID and X509_NAME_get_text_by_NID #11129 (theX509_NAMElookups), feat(libSceLibreSsl): implement SSL_CTX_ctrl, SSL_CTX_callback_ctrl, SSL_CTX_set_msg_callback, SSL_CTX_set_verify and SSL_CTX_set_session_id_context #11138 (theSSL_CTXsettings), feat(libSceLibreSsl): implement SSL_set_verify, SSL_get0_alpn_selected, SSL_set_connect_state and SSL_ctrl #11143 (SSL_set_verify,SSL_get0_alpn_selected,SSL_set_connect_stateandSSL_ctrl) and docs(debt): drop the libSceLibreSsl pending export count #11553 (the pending-exports count taken off the debt entry);SSLaccessors), feat(libSceLibreSsl): implement SSL_get_session, SSL_get_current_cipher, SSL_get_certificate and SSL_get_privatekey #10482 (SSL_get_session,SSL_get_current_cipher,SSL_get_certificateandSSL_get_privatekey), feat(libSceLibreSsl): implement the SSL_CTX info, session, verify, client certificate, NPN and ALPN callback setters #10485 (theSSL_CTXcallback setters) and feat(libSceLibreSsl): implement UI_get0_user_data, UI_get_string_type and UI_get_input_flags #10486 (UI_get0_user_data,UI_get_string_typeandUI_get_input_flags);EVP_PKEY_newandEVP_PKEY_free) and lopdan's feat(libSceLibreSsl): implement OCSP_resp_count and OCSP_resp_get0 #11003 (OCSP_resp_countandOCSP_resp_get0).CMakeLists.txt'sadd_librarysource list, in each merge.mainaddssrc/X509Name.cpp,src/Ssl.cpp,src/SslCtx.cppandsrc/SslSession.cpp, thensrc/PkeyLifecycle.cpp,src/SslCtxCallbacks.cppandsrc/UiString.cpp, and this PR addssrc/Engine.cpp. The line keeps all of them, each once.ERR_get_errorentry indocs/dev/debt/libSceLibreSsl.mdnow reads "Memory BIO, CMAC, ENGINE,SSL_CTX_ctrl,SSL_CTX_callback_ctrlandSSL_CTX_set_session_id_contextfailures publish to this queue", with feat(libSceLibreSsl): implement SSL_CTX_ctrl, SSL_CTX_callback_ctrl, SSL_CTX_set_msg_callback, SSL_CTX_set_verify and SSL_CTX_set_session_id_context #11138's three calls and this PR's ENGINE calls. This PR's ENGINE entry comes next, then feat(libSceLibreSsl): implement OCSP_check_validity #11174'sOCSP_check_validityentry.main's text, since docs(debt): drop the libSceLibreSsl pending export count #11553 took the count off it, so this PR no longer changes that line. The mergedExport.cpphas 136NotImplemented_nid_no_patchexports:main's 147, less the 11 this PR implements.^guest_libressltest andpublic_headers. That now includesguest_libressl_ssl,guest_libressl_ssl_ctx,guest_libressl_ssl_ctx_fields,guest_libressl_ssl_ctx_callbacks,guest_libressl_ssl_session,guest_libressl_ssl_settings,guest_libressl_ui_string,guest_libressl_pkey_lifecycle,guest_libressl_x509_name,guest_libressl_ocsp_basic_response,guest_libressl3_obj_cmp,guest_libressl3_rsa_getters,guest_libressl3_x509_extensionsandguest_libressl3_asn1_string.guest_libressl3_mixed_evpis registered only on Linux.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.mainc36ab99.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)docs/dev/debt/libSceLibreSsl.md, have merged (5a273d9 and 004f2df), and ahmadmuj's docs(debt): drop the libSceLibreSsl pending export count #11553 has since taken the count off that line