feat(libSceLibreSsl): answer the ENGINE calls with an empty engine list #10878
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10878"
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 EagleBearerYS on 2026-10-25T07:10:26Z.
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.c0c4c487b4, a merge ofmain451e21f4ae(run).main's #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.6415537717, a merge ofmaine05ba6feeb(run).main's #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. On6415537717merged ontomaina7a2eece49,ctest -R guest_libresslpassed 10 of 10.0631e0cb4fand0006af5251, merges ofmain2e1c72239band8a29e08834(run).main's #10484 rewrote the digest entry next to the pending-exports count, and #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.f3af853c40, the init calls back to throws (run), after @ahmadmuj's review: it revertsca6f5d1612, soExport.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.cppfromf3af853c40compiled 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.7af6326c54, a merge ofmain5e90e7569d(run).main's9a848d0b99implements 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.b0266db535, a merge ofmain84e91df418(run).main's #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.29e338af32, a merge ofmain18ef6be0cd(run). alvaroelpob's #10373 (sk_*) and #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.06c0f56888, a merge ofmain0cd07dc4ab(run). alvaroelpob's #10398, #10447 and #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 at1829def9bf(job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.42de15ad86, a merge ofmain04fefebe90(run). The one conflict was the pending-exports count indocs/dev/debt/libSceLibreSsl.md:mainreads 300 after JaceTheBlu's #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 at1829def9bf(job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.b43c407ea4, a merge ofmain0362b1521c(run). Two conflicts, both with #12601, and each keeps both sides:core/libs/tests/GuestLibreSslError.cpp: #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 #12601 and JaceTheBlu's #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.047990e37b, a merge ofmainc12e7e61a1(run), which brings JaceTheBlu's #13562 (OBJ_createandOBJ_cleanup). The one conflict was the pending-exports count indocs/dev/debt/libSceLibreSsl.md:mainreads 292 after #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.aebea558d3, a merge ofmain0a148be963(run), which brings Ninot1Quyi's #13820 (SHA-512 initialization buffers) and hyvvs's #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.d5932734b4: merges ofmain88e804b0a7(0204bff5c1) and3c3b3cda73(68ed6529f5), each followed by a recount of the pending exports (6ea7b38ec1,d5932734b4) (run, ond5932734b4).0204bff5c1:mainnow has Felipebmaitan's #9535 (error queues) and atharvjairath's #10078 (X509_EXTENSIONgetters). Two conflicts, both resolved by keeping both sides. Ininclude/Api.hpp, #9535'sERR_error_stringdeclarations sit next to this PR's ENGINE signatures. Indocs/dev/debt/libSceLibreSsl.md, #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".68ed6529f5:mainnow has alvaroelpob's #10488 (EVP_CIPHER_CTX). The one conflict was theadd_libraryline inCMakeLists.txt, which now lists #10488'ssrc/EvpCipherCtx.cppand this PR'ssrc/Engine.cpp.NotImplemented_nid_no_patchcalls left in each mergedExport.cpp: 273 after the first merge (#9535 and #10078 implement three each) and 270 after the second (#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.2c2693c9ae, a merge ofmainb28bb77217(run), which brings HQasper's #9448 (the EVP message digest and HMAC functions).add_librarysource list inCMakeLists.txt, where #9448 addssrc/Evp.cppand this PRsrc/Engine.cpp, anddocs/dev/debt/libSceLibreSsl.md, which keeps #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 withmaina4eca2a056.^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.4a059b2970, a merge ofmain4f41f4c375(run), which brings Felipebmaitan's #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.81344ff8a8, a merge ofmain9ab6a281ea(run), which brings MatteoSid's #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.3f1b7ed872, a merge ofmainb611e634f7(run), which brings LordVersA's #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.61a6d5ac68, a merge ofmaind63781e9ce(run), which brings alvaroelpob's #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 #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.97f4ac971b, a merge ofmain9f9e420709(run), which brings alvaroelpob's #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 #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.0bcf9eeb47, a merge ofmaine772fb25cc(run), which brings our #10834 (the EVP cipher calls on the cipher context), StoneDC's #12774, #12775 and #14283 (tests of error-queue interleavings, DES ECB known answers, and SHA padding and digest extents) and rooklz's #14717 (the documented exception for faulting lookup and verify-parameter arguments).CMakeLists.txt'sadd_librarysource list, wheremainadds #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).c2913c4064, after four merges ofmain:de9ec6af60(mainbf80054e7c),fbefb5d982(c454d7bacb),e35a93b962(8ad0364e81) andc2913c4064(cd75a62356) (×10).OCSP_check_validity), #11129 (theX509_NAMElookups), #11138 (theSSL_CTXsettings), #11143 (SSL_set_verify,SSL_get0_alpn_selected,SSL_set_connect_stateandSSL_ctrl) and #11553 (the pending-exports count taken off the debt entry);SSLaccessors), #10482 (SSL_get_session,SSL_get_current_cipher,SSL_get_certificateandSSL_get_privatekey), #10485 (theSSL_CTXcallback setters) and #10486 (UI_get0_user_data,UI_get_string_typeandUI_get_input_flags);EVP_PKEY_newandEVP_PKEY_free) and lopdan's #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 #11138's three calls and this PR's ENGINE calls. This PR's ENGINE entry comes next, then #11174'sOCSP_check_validityentry.main's text, since #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.de9ec6af60(run, Linux 68, Windows 67),fbefb5d982(run, 70 and 69) ande35a93b962(run, 71 and 70), each with 0 skip and 0 fail.mainc36ab99c74.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 (5a273d9f3band004f2df38d), and ahmadmuj's #11553 has since taken the count off that lineImported from boykopovar/AnyPS5. Originally posted by ahmadmuj on 2026-10-25T18:54:14Z.
Review: COMMENTED
Reviewed head
6415537717merged locally onto maina7a2eece49(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.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.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.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 leaveseng_padlock.cout of SRCS, andSymbols.listhas noENGINE_load_padlock. Even if padlock were compiled in,eng_padlock.c:102-107only definesCOMPILE_HW_PADLOCKfor i386, so on amd64ENGINE_load_padlockdoes 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".Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T08:50:53Z.
Review: APPROVED
Reviewed — looks good
At head
b43c407ea4c3df75b194ecf32d689df5fc8d2c54, the ENGINE wrappers and regression assertions agree with the pinned LibreSSL 2.5.4 null/error behavior; I found no blocking issue.The current-main merge preview onto
98ddd9c1792bbab016ceed5db267a93d1d61f00ais clean. I ran the exact-head diff and conventions checks, export ABI audit,Export.cppsyntax check, and public-header audit (373 libraries, 14,255 exports). The precheck's isolated checkout could not launch its two local-only audit scripts; I ran the ABI audit directly, and checked the test-quality registration signal against the exact CMake registration. I did not run a full local build or a console test. The contributor-provided Linux and Windows verification run succeeded on merge commit76e7ad86431347250838345854c179a0e2290e9b, whose parent is this PR head; its report records 32guest_libressltests repeated ten times with no failures. The upstream Windows job for this head remains in progress; Linux and product-specific jobs are skipped.One non-blocking description update:
Depends on: #10475is now stale because that PR closed without merging; please change it tononeor describe any remaining dependency accurately.Sources: PR-head ENGINE implementation, PR-head regression assertions, and LibreSSL 2.5.4
ENGINE_ctrl_cmd.