feat(libSceLibreSsl3): return from four calls as firmware 13.42 does #15591

Merged
BunnyFl merged 3 commits from upstream-pr/15591 into main 2026-11-10 08:24:15 +00:00
BunnyFl commented 2026-11-03 20:53:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-03T20:53:01Z.


What

Four libSceLibreSsl3 exports threw. In firmware 13.42 each one returns at once, reading none of its arguments, and this change does the same:

Export NID Prototype (LibreSSL) Returns
SSL_CTX_set_max_early_data 8kct4CSWwOA int (SSL_CTX*, uint32_t), ssl.h:1280 1
SSL_CTX_set_post_handshake_auth wHdymWL7CbE void (SSL_CTX*, int), ssl.h:722 nothing
SSL_process_quic_post_handshake aKGUCnoiE+k int (SSL*), ssl.h:1736 1
SSL_set_quic_use_legacy_codepoint CFRaBB2+R+s void (SSL*, int), ssl.h:1764 nothing

The prototypes are from libressl/openbsd ad3418a862e15ac14ce89ecb3e1989ab9e8739aa: libssl/ssl.h, at the lines given. SSL_CTX and SSL are passed as void*, and the declarations in core/libs/prx/libSceLibreSsl3/include/Api.hpp change with them.

In docs/dev/debt/libSceLibreSsl3.md, the "Additional exports" entry goes from the 105 throwing declarations of main 07ae6afcee to 101 (92 named, 9 known only by NID), and the four rows leave its table.

This PR first also covered ERR_load_PEM_strings, ERR_load_X509_strings and OpenSSL_add_all_digests. #17246 implements those three the same way (a lone ret in firmware 13.42), and it was agreed there that #17246 goes first, so this PR leaves them to it (comment).

Source

Firmware 13.42 system/common/lib/libSceLibreSsl3.sprx (sha256 ee2c529c87fe21b7ef1e5f13d10c47ee90944f52a1f848fe0995e031817c2c3a), read from disassembly, not run on a console. Each body, to its return:

eaa00: mov $0x1,%eax          ; SSL_CTX_set_max_early_data
eaa05: ret
ecdc0: ret                    ; SSL_CTX_set_post_handshake_auth
ec470: mov $0x1,%eax          ; SSL_process_quic_post_handshake
ec475: ret
ed160: ret                    ; SSL_set_quic_use_legacy_codepoint

No argument is read and nothing is written; the ret only returns to the caller. A null or invalid pointer is never dereferenced, here or in firmware.

Tested

  • Merged main 07ae6afcee into the branch; the head is now b84a360e41. The debt file conflicted in two places this time: the "Additional exports" count, and one table row. main's #15544 implemented X509_STORE_CTX_get0_param and removed its row, right next to the SSL_CTX_set_max_early_data row this branch removes, and each side of the conflict still carried the row the other had removed. Neither row is kept: a conflicted row stays only when its export still has a throwing stub in the merged AdditionalExports.cpp, and neither does. The count is derived from the merged tree, not taken from either side: AdditionalExports.cpp holds 101 NotImplemented_nid_no_patch stubs and the debt table has 101 rows, 92 named and 9 known only by NID. This branch's side had 102 (93 named) and main 07ae6afcee has 105 (96 named); both of those matched their own trees by the same two counts.

    • Windows 11 Pro 10.0.26300, WinLibs GCC, Release, at b84a360e41: 47 of 47 pass, none Not Run (100% tests passed, 0 tests failed out of 47), with the test executables behind them rebuilt at this head and the libSceLibreSsl3 target built. The set is the 46 tests listed under the previous head below plus guest_libressl3_x509_store_context, which main registered in between.
    • tools/check_conventions.py --base upstream/main on the committed head b84a360e41: all checks pass.
    • review-tools/sig_users.py HEAD --build at this head: the four changed declarations are named in 3 files, none outside this branch's own changes, and both targets that name them (guest_libressl3_noop_returns_tests, libSceLibreSsl3) build.
    • tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8 at this head, against 1,993 open pull requests: 61 share a file with the branch, and it lists no shared export or new file. Of the ones it could compare, one has a conflicting line: #17544, on core/libs/prx/libSceLibreSsl3/CMakeLists.txt line 121 in the comparison base 07ae6afcee. The run failed closed (exit 2) on 37 pull requests that conflict with main themselves and compared none of them. All 37 were then checked by hand at this head: every added and removed line of each diff searched for the four export names, their _nid_postfix spellings and the NIDs 8kct4CSWwOA, CFRaBB2+R+s, aKGUCnoiE+k and wHdymWL7CbE. None of the 37 names any of them, and every diff was served (none unfetchable).
  • Merged main 4a467be387 into the branch; the head is now 285e5e7659. Only the "Additional exports" count conflicted. The count is derived from the merged tree, not taken from either side: AdditionalExports.cpp holds 102 NotImplemented_nid_no_patch stubs and the debt table has 102 rows, 93 named and 9 known only by NID. This branch's side had 107 (98 named) and main 4a467be387 has 106 (97 named).

    • Windows 11 Pro 10.0.26300, WinLibs GCC, Release, at 285e5e7659: 46 of 46 pass, none Not Run (100% tests passed, 0 tests failed out of 46), with the 44 test executables behind them rebuilt at this head and the libSceLibreSsl3 target built: guest_crypto_memcmp, guest_libressl3_aes, guest_libressl3_aes_ccm, guest_libressl3_asn1, guest_libressl3_asn1_object, guest_libressl3_asn1_string, guest_libressl3_asn1_values, guest_libressl3_bignum_divide, guest_libressl3_bio_fields, guest_libressl3_bio_method, guest_libressl3_chacha, guest_libressl3_cipher, guest_libressl3_digest, guest_libressl3_digest_context, guest_libressl3_digest_names, guest_libressl3_ecdsa_sig, guest_libressl3_ecdsa_sig_lifetime, guest_libressl3_evp, guest_libressl3_hmac_context, guest_libressl3_init_ssl, guest_libressl3_key_components, guest_libressl3_key_reference, guest_libressl3_libtls, guest_libressl3_libtls_settings, guest_libressl3_noop_returns, guest_libressl3_obj_cmp, guest_libressl3_pkey_bits, guest_libressl3_pkey_getters, guest_libressl3_pkey_queries, guest_libressl3_rsa_getters, guest_libressl3_rsa_setters, guest_libressl3_session_metadata, guest_libressl3_signature_algorithms, guest_libressl3_ssl, guest_libressl3_stack, guest_libressl3_time, guest_libressl3_time_new, guest_libressl3_tls_protocols, guest_libressl3_version, guest_libressl3_x509_accessors, guest_libressl3_x509_algor, guest_libressl3_x509_extensions, guest_libressl3_x509_pubkey_param, guest_libressl3_x509_validity, guest_libressl3_x509_verify_param and public_headers.
    • tools/check_conventions.py --base upstream/main on the committed head 285e5e7659: all checks pass.
    • review-tools/sig_users.py HEAD --build at this head: the four changed declarations are named in 3 files, none outside this branch's own changes, and both targets that name them (guest_libressl3_noop_returns_tests, libSceLibreSsl3) build.
    • tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8 at this head, against 1,938 open pull requests: 63 share a file with the branch, none shares an export or a new file. 20 have conflicting lines, 16 of them only on the "Additional exports" count line (docs/dev/debt/libSceLibreSsl3.md line 82 in the comparison base 4a467be387); #15831 also conflicts on include/Api.hpp lines 388-389 and two debt lines, #16689 and #17147 on a second debt line, and #17544 on CMakeLists.txt line 120. The run failed closed (exit 2) on 32 pull requests that conflict with main themselves and compared none of them. All 32 were then checked by hand at this head: every added and removed line of each diff searched for the four export names, their _nid_postfix spellings and the NIDs 8kct4CSWwOA, CFRaBB2+R+s, aKGUCnoiE+k and wHdymWL7CbE. None of the 32 names any of them, and every diff was served (none unfetchable).
  • Head 925b6e1c71: 4bffabf177 gives the three loaders back to main's state (throwing placeholders, int declarations, their debt-table rows, no calls in the test), and then main 4cf30166ab is merged in. main had implemented EVP_PKEY_get0_EC_KEY; only the "Additional exports" count conflicted. Counted from the merged AdditionalExports.cpp: 113 throw, 9 of them NID-only, and the debt table has 113 rows; every named row is a throwing body there and every throwing named body has a row.

    • On 925b6e1c71, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 40 of 40 pass, none Not Run (the guest_libressl3_* tests, guest_crypto_memcmp and libressl3_import_binding), with all 40 test executables rebuilt.
    • Negative control at 925b6e1c71: NotImplemented_nid_no_patch(__func__) put back at the top of the four bodies, which is main's behaviour, with this branch's signatures and test kept: guest_libressl3_noop_returns aborts with SSL_CTX_set_max_early_data_nid_postfix not implemented (0 of 1 pass). The file was restored from the commit afterwards.
    • tools/check_conventions.py --base upstream/main on the committed head 925b6e1c71: all checks pass. review-tools/sig_users.py HEAD --build lists the four changed declarations; both targets that name them build.
    • tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8 at 925b6e1c71, against 1,851 open pull requests: no pull request shares an export or a new file, #17246 included. 16 have conflicting lines, almost all on the "Additional exports" count line. The run failed closed (exit 2) on 38 pull requests that conflict with main; I grepped the added and removed lines of each one's diff for the four names and NIDs, and none names any of them (#12315's libSceLibreSsl3 patches through the pull request files API, its files).
  • On 2026-11-07 adriadam10 rebased the branch onto main as the single commit 42667abb96; on that commit the test is tests/NoopReturns.cpp (guest_libressl3_noop_returns). Bullets below that name TrivialReturns.cpp or guest_libressl3_trivial_returns describe heads from before that rebase, which are no longer on the branch.

  • Merged main cdf371df68 into the branch; the head is now 785e8b4da1. main had implemented the fourteen libtls exports in src/LibTls.cpp and removed their placeholders, declarations and debt rows; some of those sat next to this branch's lines in include/Api.hpp and the debt table, so the merge conflicted there. main's removals and this branch's typed declarations are both kept. The count is taken from the merged AdditionalExports.cpp: 139 definitions still throw, 10 of them the Unknown_* NID-only ones, and the debt table has 139 rows (146 on main).

    • On 785e8b4da1, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 94 of 94 pass, none Not Run, with the test executables rebuilt: the 29 guest_libressl3_* tests registered at this head (main added three), public_headers and the 64 public_headers_compile_* batches.
    • The branch's added and removed lines against main are the same as at a947ec47be apart from the count line, so the negative control below was not repeated.
    • tools/check_conventions.py --base upstream/main on the committed head 785e8b4da1: all checks pass.
  • Merged main 56374036ad into the branch; the head is now a947ec47be. It conflicted in two places, both neighbours: main registered its guest_libressl3_digest_names test in core/libs/prx/libSceLibreSsl3/CMakeLists.txt where this branch registers guest_libressl3_trivial_returns (both are kept), and implemented EVP_get_digestbyname, lowering the "Additional exports" count to 163 / 153. The merged number is counted from the merged AdditionalExports.cpp: 156 definitions still throw, 10 of them the Unknown_* NID-only ones, and the debt table has 156 rows.

    • On a947ec47be, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 91 of 91 pass, none Not Run, with the test executables rebuilt: the 26 guest_libressl3_* tests registered at this head (now including digest_names), public_headers and the 64 public_headers_compile_* batches.
    • The branch's added and removed lines against main are the same as at f17a90a144 apart from the count line, so the negative control below was not repeated.
    • tools/check_conventions.py --base upstream/main on the committed head a947ec47be: all checks pass.
  • Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head f17a90a144 (main b96af01beb merged in): 90 of 90 pass, none Not Run, with the 24 test executables built at this head. That is the 25 guest_libressl3_* tests registered at this head, public_headers and the 64 public_headers_compile_* batches.

  • New core/libs/prx/libSceLibreSsl3/tests/TrivialReturns.cpp:

    • It calls all seven and checks the two return values, SSL_CTX_set_max_early_data also with a null context.
    • It checks that the SSL_CTX and SSL buffers passed in are unchanged.
  • Negative control at this head: I put NotImplemented_nid_no_patch(__func__) back at the top of the seven bodies, which is main's behaviour, and kept this branch's signatures and test. The new test then aborts with ERR_load_PEM_strings_nid_postfix not implemented (1 of 1 failed).

  • tools/check_conventions.py --base upstream/main on the committed head f17a90a144: all checks pass.

  • The merge of main b96af01beb conflicted where main had implemented tls_config_parse_protocols, next to this branch's SSL_CTX_set_post_handshake_auth: its placeholder and its row in the debt table go, and main's typed declaration is kept. Both sides had set the "Additional exports" count to the same 164 / 154, so that line merged without a conflict but was wrong for the merged tree; it is recounted from the merged AdditionalExports.cpp: 157 of its 164 APS5_VABI definitions throw, 10 of them the Unknown_* NID-only ones, and the debt table has 157 rows. The same count gives 164 on main and at this branch's previous head 57d082850e, and 171 at their merge base 87448b3c91, which is what each of those trees states.

  • Merged main ee63f5e8d5 into the branch; the head is now 2e7f38a22b. This one conflicted in three files, and only the debt file was a count: main implemented X509_gmtime_adj in src/TimeNew.cpp and deleted its stub from AdditionalExports.cpp, directly beside this branch's SSL_process_quic_post_handshake implementation, and typed its declaration in include/Api.hpp beside this branch's. The resolution takes main's deletion and its typed declaration and keeps this branch's implementation and declaration; the two changes are independent and git only saw adjacent lines.

    • The inventory table conflicted too, and both conflicting rows were dropped: this branch's side kept X509_gmtime_adj's row (it does not implement it) and main's side kept SSL_process_quic_post_handshake's (it does not implement that), while in the merged tree both exports are implemented. Each row was decided from the merged AdditionalExports.cpp - is it still a parameterless throwing stub? - not from either side.
    • The count follows from the finished table and is derived: 107 NotImplemented_nid_no_patch declarations in AdditionalExports.cpp and 107 table rows, 98 named and 9 known only by NID. This branch's side said 109 and main's said 111; on main ee63f5e8d5 both rules give 111.
    • On 2e7f38a22b, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 44 of 44 pass, none Not Run (100% tests passed, 0 tests failed out of 44), with the test executables rebuilt at this head and libSceLibreSsl3 built. public_headers runs the Python checker and builds nothing of its own. guest_libressl3_mixed_evp is registered on Linux only and did not run.
    • tools/check_conventions.py --base upstream/main on the committed head 2e7f38a22b: all checks pass. review-tools/sig_users.py HEAD --build: the four changed declarations are named in 3 files, none outside this branch's own changes; both targets that name them (guest_libressl3_noop_returns_tests, libSceLibreSsl3) build.
    • tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8 at this head, against 1,942 open pull requests: 67 share files or exports with the branch. Seven of the ones it could compare have a conflicting line: #17243, #17246, #17249, #17250 and #17528 on the inventory count sentence only, #16689 on that sentence and a second debt line, and #17147 on that second line. The run failed closed (exit 2) on 44 pull requests that conflict with main themselves and compared none of them. All 44 were then checked by hand at this head: every added and removed line of each diff searched for the four export names, their _nid_postfix spellings and the NIDs 8kct4CSWwOA, CFRaBB2+R+s, aKGUCnoiE+k and wHdymWL7CbE. None appears in any of them. #12315 is refused whole by GitHub (over 300 files), so it was read through the per-file patches API: 1,050 files listed, a patch served for 1,044 of them, clean; the remaining six serve no patch (binary or oversized).
  • Merged main 0dd2fffe35 into the branch; the head is now ac05ce7365. Only the "Additional exports" count line conflicted again, and the count is derived from the merged tree rather than taken from either side, which matters here: this branch's side of the conflict said 110 and main's said 113, while the merged answer is 109. main had removed SSL_CTX_set_timeout's row, this branch removes four others, and both removals apply. Two rules agree on the merged tree: core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp holds 109 NotImplemented_nid_no_patch declarations, and the inventory table has 109 rows, 100 named and 9 known only by NID (unknown). On main 0dd2fffe35 both give 113 (104 named).

    • On ac05ce7365, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 43 of 43 pass, none Not Run (100% tests passed, 0 tests failed out of 43), with the 41 test executables rebuilt at this head and libSceLibreSsl3 built. public_headers runs the Python checker and builds nothing of its own. guest_libressl3_mixed_evp is registered on Linux only and did not run.
    • review-tools/sig_users.py HEAD --build: the four changed declarations are named in 3 files, none outside this branch's own changes; both targets that name them (guest_libressl3_noop_returns_tests, libSceLibreSsl3) build.
    • tools/check_conventions.py --base upstream/main on the committed head ac05ce7365: all checks pass.
    • tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8 at this head, against 1,947 open pull requests: 70 share files or exports with the branch. 15 have conflicting lines. Twelve of those conflict only on the "Additional exports" count line, line 79 of docs/dev/debt/libSceLibreSsl3.md in the comparison base (#17124, #17235, #17236, #17237, #17238, #17239, #17240, #17241, #17243, #17246, #17249, #17250); whichever lands later recounts it. The other three reach further: #15831 and #17242 also on include/Api.hpp and an inventory row, #17147 on a second debt line. #17246 appears on the count line only, on no export: this PR left its three exports to it at 4bffabf177. The run failed closed (exit 2) on 34 pull requests that conflict with main themselves; those were not compared line by line and their diffs were not re-searched at this head: for those 34, overlap is not verified.
  • Merged main 8e34d2642d into the branch; the head is now f3390daac0. Only the "Additional exports" count line conflicted. Counted from the merged AdditionalExports.cpp: 110 NotImplemented_nid_no_patch declarations, 101 named and 9 known only by NID (unknown in the table), against 114 on main, 113 at this branch's previous head and 117 at the merge base, which is what each states. The merged inventory table (docs/dev/debt/libSceLibreSsl3.md:82 to :191 at this head) has 110 rows, 101 named and 9 unknown, so the table and the count line (docs/dev/debt/libSceLibreSsl3.md:78) agree. git merge-tree against upstream/main is clean.

    • On f3390daac0, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 43 of 43 pass, none Not Run (100% tests passed, 0 tests failed out of 43). That is the guest_libressl3_* tests registered at this head, guest_crypto_memcmp and public_headers, with all 41 test executables rebuilt; libSceLibreSsl3 builds. guest_libressl3_mixed_evp is registered on Linux only and did not run.
    • review-tools/sig_users.py HEAD --build: the four changed declarations are named in 3 files, none outside this branch's own changes; both targets that name them (guest_libressl3_noop_returns_tests, libSceLibreSsl3) build.
    • tools/check_conventions.py --base upstream/main on the committed head f3390daac0: all checks pass.
    • tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8 at this head, against 1,977 open pull requests: no pull request shares an export or a new file. 14 have conflicting lines, 12 of them only on the "Additional exports" count line; #17622 also conflicts on include/Api.hpp and two inventory rows, and #16689 on two debt lines further down. #17246 does not appear at all, so nothing is shared with it any more. The run failed closed (exit 2) on 40 pull requests that conflict with main themselves; I grepped the added and removed lines of 39 of those diffs for the four names and the four NIDs with no hits. #12315's diff is not servable (HTTP 406, over 300 files), so I grepped the patches of its ten libSceLibreSsl3 files instead: SSL_CTX_set_post_handshake_auth_nid_postfix appears there only as an unchanged context line in an include/Api.hpp hunk that changes ASN1_TIME_diff_nid_postfix two lines below it, so it shares no export with this branch.
  • Merged main 87473937d3 into the branch; the head is now 98724d9750. Only the "Additional exports" count conflicted. Counted from the merged AdditionalExports.cpp: 132 of its 139 APS5_VABI definitions throw, 10 of them the Unknown_* NID-only ones, and the debt table has 132 rows (139 and 139 on main). ctest -R '^guest_libressl3': 33 of 33 passed; sig_users.py HEAD --build: the seven changed declarations are named only in this branch's files.

  • tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8 at this head, against 1,869 open pull requests: 43 share files or exports with the branch, and the run failed closed. It lists 10 with line conflicts and 32 more in its "Some comparisons could not be completed" table, which it does not compare line by line. The line conflicts are the docs/dev/debt/libSceLibreSsl3.md count on line 57 (#14612, #15289, #15303, #15826, #15831, #15854, #16249, #16255, #16258), debt table rows and include/Api.hpp lines next to this branch's (#15289, #15303, #15831), and CMakeLists.txt line 28 (#15449, #16258). I searched the added and removed lines of all 42 listed pull requests for the seven names and the seven NIDs: GitHub's diff for 41 of them, and for #12315, whose whole diff is too large for GitHub to serve, its per-file patches of the LibreSsl3 files. None of them names any of the seven.

  • Merged main f35f1e5eca into the branch; the head is now 6a8c9bd042. Two places conflicted. In core/libs/prx/libSceLibreSsl3/include/Api.hpp, main f35f1e5eca had implemented ASN1_TYPE_free (declared at core/libs/prx/libSceLibreSsl3/include/Api.hpp:144, defined in src/EcdsaSig.cpp), so its placeholder declaration next to this branch's SSL_CTX_set_post_handshake_auth goes and this branch's typed declaration is kept. In docs/dev/debt/libSceLibreSsl3.md, the "Additional exports" count: main states 118 (109 named, 9 NID-only), which matches its AdditionalExports.cpp (118 NotImplemented_nid_no_patch calls, 9 of them Unknown_*). Counted from the merged AdditionalExports.cpp: 111 throw, 9 of them NID-only, and the debt table has 111 rows (9 unknown); every named row is a throwing body there and every throwing named body has a row.

    • On 6a8c9bd042, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 40 of 40 pass, none Not Run (the guest_libressl3_* tests, guest_crypto_memcmp and libressl3_import_binding), with all 40 test executables rebuilt.
    • tools/check_conventions.py --base upstream/main on the committed head 6a8c9bd042: all checks pass. review-tools/sig_users.py HEAD --build lists the seven changed declarations; no file outside this branch's own changes names them, and both targets that do (guest_libressl3_noop_returns_tests, libSceLibreSsl3) build.
    • tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8 at 6a8c9bd042, against 1,825 open pull requests: 22 have conflicting lines. 16 conflict only on the "Additional exports" count line, which on main f35f1e5eca is docs/dev/debt/libSceLibreSsl3.md:75; #15831, #16689, #17147, #17237 and #17242 also conflict on neighbouring lines in Api.hpp, AdditionalExports.cpp or the debt table. #17246 implements three of the same exports (ERR_load_PEM_strings, ERR_load_X509_strings, OpenSSL_add_all_digests): it keeps the first two throwing and makes the third return. I asked its author on that PR to agree an order (comment). The run failed closed (exit 2) on 35 pull requests that conflict with main; I grepped the added and removed lines of each one's diff for the seven names and NIDs, and none names any of them. For #12315 the diff request returns HTTP 406 (the diff exceeded the maximum number of files (300)), so I grepped the patches of its ten libSceLibreSsl3 files from the pull request files API instead (its files).
  • The LibreSSL prototypes of this PR (seven before 4bffabf177, the four above now) were read at libressl/openbsd commit ad3418a862e15ac14ce89ecb3e1989ab9e8739aa and each cited line holds the prototype named: pem.h:463 ERR_load_PEM_strings(void), x509.h:940 ERR_load_X509_strings(void), evp.h:744 OpenSSL_add_all_digests(void), ssl.h:722 SSL_CTX_set_post_handshake_auth(SSL_CTX *, int), ssl.h:1280 SSL_CTX_set_max_early_data(SSL_CTX *, uint32_t), ssl.h:1736 SSL_process_quic_post_handshake(SSL *) and ssl.h:1764 SSL_set_quic_use_legacy_codepoint(SSL *, int).

  • Linux and macOS were not built or run. No title was run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5144346090 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15591). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-03T20:53:01Z. --- ### What Four libSceLibreSsl3 exports threw. In firmware 13.42 each one returns at once, reading none of its arguments, and this change does the same: | Export | NID | Prototype (LibreSSL) | Returns | |---|---|---|---| | `SSL_CTX_set_max_early_data` | `8kct4CSWwOA` | `int (SSL_CTX*, uint32_t)`, `ssl.h:1280` | `1` | | `SSL_CTX_set_post_handshake_auth` | `wHdymWL7CbE` | `void (SSL_CTX*, int)`, `ssl.h:722` | nothing | | `SSL_process_quic_post_handshake` | `aKGUCnoiE+k` | `int (SSL*)`, `ssl.h:1736` | `1` | | `SSL_set_quic_use_legacy_codepoint` | `CFRaBB2+R+s` | `void (SSL*, int)`, `ssl.h:1764` | nothing | The prototypes are from [libressl/openbsd `ad3418a862e15ac14ce89ecb3e1989ab9e8739aa`](https://github.com/libressl/openbsd/tree/ad3418a862e15ac14ce89ecb3e1989ab9e8739aa/src/lib): `libssl/ssl.h`, at the lines given. `SSL_CTX` and `SSL` are passed as `void*`, and the declarations in `core/libs/prx/libSceLibreSsl3/include/Api.hpp` change with them. In `docs/dev/debt/libSceLibreSsl3.md`, the "Additional exports" entry goes from the 105 throwing declarations of `main` `07ae6afcee` to 101 (92 named, 9 known only by NID), and the four rows leave its table. This PR first also covered `ERR_load_PEM_strings`, `ERR_load_X509_strings` and `OpenSSL_add_all_digests`. #17246 implements those three the same way (a lone `ret` in firmware 13.42), and it was agreed there that #17246 goes first, so this PR leaves them to it ([comment](https://github.com/boykopovar/AnyPS5/pull/17246#issuecomment-6724383098)). ### Source Firmware 13.42 `system/common/lib/libSceLibreSsl3.sprx` (sha256 `ee2c529c87fe21b7ef1e5f13d10c47ee90944f52a1f848fe0995e031817c2c3a`), read from disassembly, not run on a console. Each body, to its return: ``` eaa00: mov $0x1,%eax ; SSL_CTX_set_max_early_data eaa05: ret ecdc0: ret ; SSL_CTX_set_post_handshake_auth ec470: mov $0x1,%eax ; SSL_process_quic_post_handshake ec475: ret ed160: ret ; SSL_set_quic_use_legacy_codepoint ``` No argument is read and nothing is written; the `ret` only returns to the caller. A null or invalid pointer is never dereferenced, here or in firmware. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Merged `main` `07ae6afcee` into the branch; the head is now `b84a360e41`. The debt file conflicted in two places this time: the "Additional exports" count, and one table row. `main`'s #15544 implemented `X509_STORE_CTX_get0_param` and removed its row, right next to the `SSL_CTX_set_max_early_data` row this branch removes, and each side of the conflict still carried the row the other had removed. Neither row is kept: a conflicted row stays only when its export still has a throwing stub in the merged `AdditionalExports.cpp`, and neither does. The count is **derived from the merged tree**, not taken from either side: `AdditionalExports.cpp` holds 101 `NotImplemented_nid_no_patch` stubs and the debt table has 101 rows, 92 named and 9 known only by NID. This branch's side had 102 (93 named) and `main` `07ae6afcee` has 105 (96 named); both of those matched their own trees by the same two counts. - Windows 11 Pro 10.0.26300, WinLibs GCC, Release, at `b84a360e41`: **47 of 47 pass, none Not Run** (100% tests passed, 0 tests failed out of 47), with the test executables behind them rebuilt at this head and the `libSceLibreSsl3` target built. The set is the 46 tests listed under the previous head below plus `guest_libressl3_x509_store_context`, which `main` registered in between. - `tools/check_conventions.py --base upstream/main` on the committed head `b84a360e41`: all checks pass. - `review-tools/sig_users.py HEAD --build` at this head: the four changed declarations are named in 3 files, none outside this branch's own changes, and both targets that name them (`guest_libressl3_noop_returns_tests`, `libSceLibreSsl3`) build. - `tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8` at this head, against 1,993 open pull requests: 61 share a file with the branch, and it lists no shared export or new file. Of the ones it could compare, one has a conflicting line: [#17544](https://github.com/boykopovar/AnyPS5/pull/17544), on `core/libs/prx/libSceLibreSsl3/CMakeLists.txt` line 121 in the comparison base `07ae6afcee`. The run failed closed (exit 2) on 37 pull requests that conflict with `main` themselves and compared none of them. **All 37 were then checked by hand at this head**: every added and removed line of each diff searched for the four export names, their `_nid_postfix` spellings and the NIDs `8kct4CSWwOA`, `CFRaBB2+R+s`, `aKGUCnoiE+k` and `wHdymWL7CbE`. None of the 37 names any of them, and every diff was served (none unfetchable). - Merged `main` `4a467be387` into the branch; the head is now `285e5e7659`. Only the "Additional exports" count conflicted. The count is **derived from the merged tree**, not taken from either side: `AdditionalExports.cpp` holds 102 `NotImplemented_nid_no_patch` stubs and the debt table has 102 rows, 93 named and 9 known only by NID. This branch's side had 107 (98 named) and `main` `4a467be387` has 106 (97 named). - Windows 11 Pro 10.0.26300, WinLibs GCC, Release, at `285e5e7659`: **46 of 46 pass, none Not Run** (100% tests passed, 0 tests failed out of 46), with the 44 test executables behind them rebuilt at this head and the `libSceLibreSsl3` target built: `guest_crypto_memcmp`, `guest_libressl3_aes`, `guest_libressl3_aes_ccm`, `guest_libressl3_asn1`, `guest_libressl3_asn1_object`, `guest_libressl3_asn1_string`, `guest_libressl3_asn1_values`, `guest_libressl3_bignum_divide`, `guest_libressl3_bio_fields`, `guest_libressl3_bio_method`, `guest_libressl3_chacha`, `guest_libressl3_cipher`, `guest_libressl3_digest`, `guest_libressl3_digest_context`, `guest_libressl3_digest_names`, `guest_libressl3_ecdsa_sig`, `guest_libressl3_ecdsa_sig_lifetime`, `guest_libressl3_evp`, `guest_libressl3_hmac_context`, `guest_libressl3_init_ssl`, `guest_libressl3_key_components`, `guest_libressl3_key_reference`, `guest_libressl3_libtls`, `guest_libressl3_libtls_settings`, `guest_libressl3_noop_returns`, `guest_libressl3_obj_cmp`, `guest_libressl3_pkey_bits`, `guest_libressl3_pkey_getters`, `guest_libressl3_pkey_queries`, `guest_libressl3_rsa_getters`, `guest_libressl3_rsa_setters`, `guest_libressl3_session_metadata`, `guest_libressl3_signature_algorithms`, `guest_libressl3_ssl`, `guest_libressl3_stack`, `guest_libressl3_time`, `guest_libressl3_time_new`, `guest_libressl3_tls_protocols`, `guest_libressl3_version`, `guest_libressl3_x509_accessors`, `guest_libressl3_x509_algor`, `guest_libressl3_x509_extensions`, `guest_libressl3_x509_pubkey_param`, `guest_libressl3_x509_validity`, `guest_libressl3_x509_verify_param` and `public_headers`. - `tools/check_conventions.py --base upstream/main` on the committed head `285e5e7659`: all checks pass. - `review-tools/sig_users.py HEAD --build` at this head: the four changed declarations are named in 3 files, none outside this branch's own changes, and both targets that name them (`guest_libressl3_noop_returns_tests`, `libSceLibreSsl3`) build. - `tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8` at this head, against 1,938 open pull requests: 63 share a file with the branch, none shares an export or a new file. 20 have conflicting lines, 16 of them only on the "Additional exports" count line (`docs/dev/debt/libSceLibreSsl3.md` line 82 in the comparison base `4a467be387`); [#15831](https://github.com/boykopovar/AnyPS5/pull/15831) also conflicts on `include/Api.hpp` lines 388-389 and two debt lines, [#16689](https://github.com/boykopovar/AnyPS5/pull/16689) and [#17147](https://github.com/boykopovar/AnyPS5/pull/17147) on a second debt line, and [#17544](https://github.com/boykopovar/AnyPS5/pull/17544) on `CMakeLists.txt` line 120. The run failed closed (exit 2) on 32 pull requests that conflict with `main` themselves and compared none of them. **All 32 were then checked by hand at this head**: every added and removed line of each diff searched for the four export names, their `_nid_postfix` spellings and the NIDs `8kct4CSWwOA`, `CFRaBB2+R+s`, `aKGUCnoiE+k` and `wHdymWL7CbE`. None of the 32 names any of them, and every diff was served (none unfetchable). - Head `925b6e1c71`: `4bffabf177` gives the three loaders back to `main`'s state (throwing placeholders, `int` declarations, their debt-table rows, no calls in the test), and then `main` `4cf30166ab` is merged in. `main` had implemented `EVP_PKEY_get0_EC_KEY`; only the "Additional exports" count conflicted. Counted from the merged `AdditionalExports.cpp`: **113 throw, 9 of them NID-only**, and the debt table has 113 rows; every named row is a throwing body there and every throwing named body has a row. - On `925b6e1c71`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **40 of 40 pass, none Not Run** (the `guest_libressl3_*` tests, `guest_crypto_memcmp` and `libressl3_import_binding`), with all 40 test executables rebuilt. - **Negative control** at `925b6e1c71`: `NotImplemented_nid_no_patch(__func__)` put back at the top of the four bodies, which is `main`'s behaviour, with this branch's signatures and test kept: `guest_libressl3_noop_returns` aborts with `SSL_CTX_set_max_early_data_nid_postfix not implemented` (0 of 1 pass). The file was restored from the commit afterwards. - `tools/check_conventions.py --base upstream/main` on the committed head `925b6e1c71`: all checks pass. `review-tools/sig_users.py HEAD --build` lists the four changed declarations; both targets that name them build. - `tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8` at `925b6e1c71`, against 1,851 open pull requests: no pull request shares an export or a new file, #17246 included. 16 have conflicting lines, almost all on the "Additional exports" count line. The run failed closed (exit 2) on 38 pull requests that conflict with `main`; I grepped the added and removed lines of each one's diff for the four names and NIDs, and none names any of them (#12315's libSceLibreSsl3 patches through the pull request files API, [its files](https://github.com/boykopovar/AnyPS5/pull/12315/files)). - On 2026-11-07 adriadam10 rebased the branch onto `main` as the single commit `42667abb96`; on that commit the test is `tests/NoopReturns.cpp` (`guest_libressl3_noop_returns`). Bullets below that name `TrivialReturns.cpp` or `guest_libressl3_trivial_returns` describe heads from before that rebase, which are no longer on the branch. - Merged `main` `cdf371df68` into the branch; the head is now `785e8b4da1`. `main` had implemented the fourteen libtls exports in `src/LibTls.cpp` and removed their placeholders, declarations and debt rows; some of those sat next to this branch's lines in `include/Api.hpp` and the debt table, so the merge conflicted there. `main`'s removals and this branch's typed declarations are both kept. The count is taken from the merged `AdditionalExports.cpp`: **139 definitions still throw, 10 of them the `Unknown_*` NID-only ones**, and the debt table has 139 rows (146 on `main`). - On `785e8b4da1`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **94 of 94 pass, none Not Run**, with the test executables rebuilt: the 29 `guest_libressl3_*` tests registered at this head (`main` added three), `public_headers` and the 64 `public_headers_compile_*` batches. - The branch's added and removed lines against `main` are the same as at `a947ec47be` apart from the count line, so the negative control below was not repeated. - `tools/check_conventions.py --base upstream/main` on the committed head `785e8b4da1`: all checks pass. - Merged `main` `56374036ad` into the branch; the head is now `a947ec47be`. It conflicted in two places, both neighbours: `main` registered its `guest_libressl3_digest_names` test in `core/libs/prx/libSceLibreSsl3/CMakeLists.txt` where this branch registers `guest_libressl3_trivial_returns` (both are kept), and implemented `EVP_get_digestbyname`, lowering the "Additional exports" count to 163 / 153. The merged number is counted from the merged `AdditionalExports.cpp`: **156 definitions still throw, 10 of them the `Unknown_*` NID-only ones**, and the debt table has 156 rows. - On `a947ec47be`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **91 of 91 pass, none Not Run**, with the test executables rebuilt: the 26 `guest_libressl3_*` tests registered at this head (now including `digest_names`), `public_headers` and the 64 `public_headers_compile_*` batches. - The branch's added and removed lines against `main` are the same as at `f17a90a144` apart from the count line, so the negative control below was not repeated. - `tools/check_conventions.py --base upstream/main` on the committed head `a947ec47be`: all checks pass. - Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `f17a90a144` (`main` `b96af01beb` merged in): **90 of 90 pass, none Not Run**, with the 24 test executables built at this head. That is the 25 `guest_libressl3_*` tests registered at this head, `public_headers` and the 64 `public_headers_compile_*` batches. - New `core/libs/prx/libSceLibreSsl3/tests/TrivialReturns.cpp`: - It calls all seven and checks the two return values, `SSL_CTX_set_max_early_data` also with a null context. - It checks that the `SSL_CTX` and `SSL` buffers passed in are unchanged. - **Negative control** at this head: I put `NotImplemented_nid_no_patch(__func__)` back at the top of the seven bodies, which is `main`'s behaviour, and kept this branch's signatures and test. The new test then aborts with `ERR_load_PEM_strings_nid_postfix not implemented` (1 of 1 failed). - `tools/check_conventions.py --base upstream/main` on the committed head `f17a90a144`: all checks pass. - The merge of `main` `b96af01beb` conflicted where `main` had implemented `tls_config_parse_protocols`, next to this branch's `SSL_CTX_set_post_handshake_auth`: its placeholder and its row in the debt table go, and `main`'s typed declaration is kept. Both sides had set the "Additional exports" count to the same 164 / 154, so that line merged without a conflict but was wrong for the merged tree; it is recounted from the merged `AdditionalExports.cpp`: 157 of its 164 `APS5_VABI` definitions throw, 10 of them the `Unknown_*` NID-only ones, and the debt table has 157 rows. The same count gives 164 on `main` and at this branch's previous head `57d082850e`, and 171 at their merge base `87448b3c91`, which is what each of those trees states. - Merged `main` `ee63f5e8d5` into the branch; the head is now `2e7f38a22b`. This one conflicted in **three** files, and only the debt file was a count: `main` implemented `X509_gmtime_adj` in `src/TimeNew.cpp` and deleted its stub from `AdditionalExports.cpp`, directly beside this branch's `SSL_process_quic_post_handshake` implementation, and typed its declaration in `include/Api.hpp` beside this branch's. The resolution takes `main`'s deletion and its typed declaration and keeps this branch's implementation and declaration; the two changes are independent and git only saw adjacent lines. - The inventory table conflicted too, and **both** conflicting rows were dropped: this branch's side kept `X509_gmtime_adj`'s row (it does not implement it) and `main`'s side kept `SSL_process_quic_post_handshake`'s (it does not implement that), while in the merged tree both exports are implemented. Each row was decided from the merged `AdditionalExports.cpp` - is it still a parameterless throwing stub? - not from either side. - The count follows from the finished table and is **derived**: 107 `NotImplemented_nid_no_patch` declarations in `AdditionalExports.cpp` and 107 table rows, 98 named and 9 known only by NID. This branch's side said 109 and `main`'s said 111; on `main` `ee63f5e8d5` both rules give 111. - On `2e7f38a22b`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **44 of 44 pass, none Not Run** (100% tests passed, 0 tests failed out of 44), with the test executables rebuilt at this head and `libSceLibreSsl3` built. `public_headers` runs the Python checker and builds nothing of its own. `guest_libressl3_mixed_evp` is registered on Linux only and did not run. - `tools/check_conventions.py --base upstream/main` on the committed head `2e7f38a22b`: all checks pass. `review-tools/sig_users.py HEAD --build`: the four changed declarations are named in 3 files, none outside this branch's own changes; both targets that name them (`guest_libressl3_noop_returns_tests`, `libSceLibreSsl3`) build. - `tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8` at this head, against 1,942 open pull requests: 67 share files or exports with the branch. Seven of the ones it could compare have a conflicting line: [#17243](https://github.com/boykopovar/AnyPS5/pull/17243), [#17246](https://github.com/boykopovar/AnyPS5/pull/17246), [#17249](https://github.com/boykopovar/AnyPS5/pull/17249), [#17250](https://github.com/boykopovar/AnyPS5/pull/17250) and [#17528](https://github.com/boykopovar/AnyPS5/pull/17528) on the inventory count sentence only, [#16689](https://github.com/boykopovar/AnyPS5/pull/16689) on that sentence and a second debt line, and [#17147](https://github.com/boykopovar/AnyPS5/pull/17147) on that second line. The run failed closed (exit 2) on 44 pull requests that conflict with `main` themselves and compared none of them. **All 44 were then checked by hand at this head**: every added and removed line of each diff searched for the four export names, their `_nid_postfix` spellings and the NIDs `8kct4CSWwOA`, `CFRaBB2+R+s`, `aKGUCnoiE+k` and `wHdymWL7CbE`. None appears in any of them. [#12315](https://github.com/boykopovar/AnyPS5/pull/12315) is refused whole by GitHub (over 300 files), so it was read through the per-file patches API: 1,050 files listed, a patch served for 1,044 of them, clean; the remaining six serve no patch (binary or oversized). - Merged `main` `0dd2fffe35` into the branch; the head is now `ac05ce7365`. Only the "Additional exports" count line conflicted again, and the count is **derived from the merged tree** rather than taken from either side, which matters here: this branch's side of the conflict said 110 and `main`'s said 113, while the merged answer is **109**. `main` had removed `SSL_CTX_set_timeout`'s row, this branch removes four others, and both removals apply. Two rules agree on the merged tree: `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp` holds 109 `NotImplemented_nid_no_patch` declarations, and the inventory table has 109 rows, 100 named and 9 known only by NID (`unknown`). On `main` `0dd2fffe35` both give 113 (104 named). - On `ac05ce7365`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **43 of 43 pass, none Not Run** (100% tests passed, 0 tests failed out of 43), with the 41 test executables rebuilt at this head and `libSceLibreSsl3` built. `public_headers` runs the Python checker and builds nothing of its own. `guest_libressl3_mixed_evp` is registered on Linux only and did not run. - `review-tools/sig_users.py HEAD --build`: the four changed declarations are named in 3 files, none outside this branch's own changes; both targets that name them (`guest_libressl3_noop_returns_tests`, `libSceLibreSsl3`) build. - `tools/check_conventions.py --base upstream/main` on the committed head `ac05ce7365`: all checks pass. - `tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8` at this head, against 1,947 open pull requests: 70 share files or exports with the branch. 15 have conflicting lines. Twelve of those conflict only on the "Additional exports" count line, [line 79 of `docs/dev/debt/libSceLibreSsl3.md`](https://github.com/boykopovar/AnyPS5/blob/0dd2fffe3576acf91048685236cd35305c637e17/docs/dev/debt/libSceLibreSsl3.md#L79) in the comparison base ([#17124](https://github.com/boykopovar/AnyPS5/pull/17124), [#17235](https://github.com/boykopovar/AnyPS5/pull/17235), [#17236](https://github.com/boykopovar/AnyPS5/pull/17236), [#17237](https://github.com/boykopovar/AnyPS5/pull/17237), [#17238](https://github.com/boykopovar/AnyPS5/pull/17238), [#17239](https://github.com/boykopovar/AnyPS5/pull/17239), [#17240](https://github.com/boykopovar/AnyPS5/pull/17240), [#17241](https://github.com/boykopovar/AnyPS5/pull/17241), [#17243](https://github.com/boykopovar/AnyPS5/pull/17243), [#17246](https://github.com/boykopovar/AnyPS5/pull/17246), [#17249](https://github.com/boykopovar/AnyPS5/pull/17249), [#17250](https://github.com/boykopovar/AnyPS5/pull/17250)); whichever lands later recounts it. The other three reach further: [#15831](https://github.com/boykopovar/AnyPS5/pull/15831) and [#17242](https://github.com/boykopovar/AnyPS5/pull/17242) also on `include/Api.hpp` and an inventory row, [#17147](https://github.com/boykopovar/AnyPS5/pull/17147) on a second debt line. **#17246 appears on the count line only, on no export**: this PR left its three exports to it at `4bffabf177`. The run failed closed (exit 2) on 34 pull requests that conflict with `main` themselves; those were not compared line by line and their diffs were not re-searched at this head: for those 34, overlap is **not verified**. - Merged `main` `8e34d2642d` into the branch; the head is now `f3390daac0`. Only the "Additional exports" count line conflicted. Counted from the merged `AdditionalExports.cpp`: 110 `NotImplemented_nid_no_patch` declarations, 101 named and 9 known only by NID (`unknown` in the table), against 114 on `main`, 113 at this branch's previous head and 117 at the merge base, which is what each states. The merged inventory table (`docs/dev/debt/libSceLibreSsl3.md:82` to `:191` at this head) has 110 rows, 101 named and 9 `unknown`, so the table and the count line (`docs/dev/debt/libSceLibreSsl3.md:78`) agree. `git merge-tree` against `upstream/main` is clean. - On `f3390daac0`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **43 of 43 pass, none Not Run** (100% tests passed, 0 tests failed out of 43). That is the `guest_libressl3_*` tests registered at this head, `guest_crypto_memcmp` and `public_headers`, with all 41 test executables rebuilt; `libSceLibreSsl3` builds. `guest_libressl3_mixed_evp` is registered on Linux only and did not run. - `review-tools/sig_users.py HEAD --build`: the four changed declarations are named in 3 files, none outside this branch's own changes; both targets that name them (`guest_libressl3_noop_returns_tests`, `libSceLibreSsl3`) build. - `tools/check_conventions.py --base upstream/main` on the committed head `f3390daac0`: all checks pass. - `tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8` at this head, against 1,977 open pull requests: no pull request shares an export or a new file. 14 have conflicting lines, 12 of them only on the "Additional exports" count line; #17622 also conflicts on `include/Api.hpp` and two inventory rows, and #16689 on two debt lines further down. #17246 does not appear at all, so nothing is shared with it any more. The run failed closed (exit 2) on 40 pull requests that conflict with `main` themselves; I grepped the added and removed lines of 39 of those diffs for the four names and the four NIDs with no hits. #12315's diff is not servable (HTTP 406, over 300 files), so I grepped the patches of its ten libSceLibreSsl3 files instead: `SSL_CTX_set_post_handshake_auth_nid_postfix` appears there only as an unchanged context line in an `include/Api.hpp` hunk that changes `ASN1_TIME_diff_nid_postfix` two lines below it, so it shares no export with this branch. - Merged `main` `87473937d3` into the branch; the head is now `98724d9750`. Only the "Additional exports" count conflicted. Counted from the merged `AdditionalExports.cpp`: 132 of its 139 `APS5_VABI` definitions throw, 10 of them the `Unknown_*` NID-only ones, and the debt table has 132 rows (139 and 139 on `main`). `ctest -R '^guest_libressl3'`: 33 of 33 passed; `sig_users.py HEAD --build`: the seven changed declarations are named only in this branch's files. - `tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8` at this head, against 1,869 open pull requests: 43 share files or exports with the branch, and the run failed closed. It lists 10 with line conflicts and 32 more in its "Some comparisons could not be completed" table, which it does not compare line by line. The line conflicts are the `docs/dev/debt/libSceLibreSsl3.md` count on line 57 (#14612, #15289, #15303, #15826, #15831, #15854, #16249, #16255, #16258), debt table rows and `include/Api.hpp` lines next to this branch's (#15289, #15303, #15831), and `CMakeLists.txt` line 28 (#15449, #16258). I searched the added and removed lines of all 42 listed pull requests for the seven names and the seven NIDs: GitHub's diff for 41 of them, and for #12315, whose whole diff is too large for GitHub to serve, its per-file patches of the LibreSsl3 files. None of them names any of the seven. - Merged `main` `f35f1e5eca` into the branch; the head is now `6a8c9bd042`. Two places conflicted. In `core/libs/prx/libSceLibreSsl3/include/Api.hpp`, `main` `f35f1e5eca` had implemented `ASN1_TYPE_free` (declared at `core/libs/prx/libSceLibreSsl3/include/Api.hpp:144`, defined in `src/EcdsaSig.cpp`), so its placeholder declaration next to this branch's `SSL_CTX_set_post_handshake_auth` goes and this branch's typed declaration is kept. In `docs/dev/debt/libSceLibreSsl3.md`, the "Additional exports" count: `main` states 118 (109 named, 9 NID-only), which matches its `AdditionalExports.cpp` (118 `NotImplemented_nid_no_patch` calls, 9 of them `Unknown_*`). Counted from the merged `AdditionalExports.cpp`: **111 throw, 9 of them NID-only**, and the debt table has 111 rows (9 `unknown`); every named row is a throwing body there and every throwing named body has a row. - On `6a8c9bd042`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **40 of 40 pass, none Not Run** (the `guest_libressl3_*` tests, `guest_crypto_memcmp` and `libressl3_import_binding`), with all 40 test executables rebuilt. - `tools/check_conventions.py --base upstream/main` on the committed head `6a8c9bd042`: all checks pass. `review-tools/sig_users.py HEAD --build` lists the seven changed declarations; no file outside this branch's own changes names them, and both targets that do (`guest_libressl3_noop_returns_tests`, `libSceLibreSsl3`) build. - `tools/pr_overlap.py --branch feat/libressl3-trivial-returns --jobs 8` at `6a8c9bd042`, against 1,825 open pull requests: 22 have conflicting lines. 16 conflict only on the "Additional exports" count line, which on `main` `f35f1e5eca` is `docs/dev/debt/libSceLibreSsl3.md:75`; #15831, #16689, #17147, #17237 and #17242 also conflict on neighbouring lines in `Api.hpp`, `AdditionalExports.cpp` or the debt table. **#17246 implements three of the same exports** (`ERR_load_PEM_strings`, `ERR_load_X509_strings`, `OpenSSL_add_all_digests`): it keeps the first two throwing and makes the third return. I asked its author on that PR to agree an order ([comment](https://github.com/boykopovar/AnyPS5/pull/17246#issuecomment-6724383098)). The run failed closed (exit 2) on 35 pull requests that conflict with `main`; I grepped the added and removed lines of each one's diff for the seven names and NIDs, and none names any of them. For #12315 the diff request returns HTTP 406 (`the diff exceeded the maximum number of files (300)`), so I grepped the patches of its ten libSceLibreSsl3 files from the pull request files API instead ([its files](https://github.com/boykopovar/AnyPS5/pull/12315/files)). - The LibreSSL prototypes of this PR (seven before `4bffabf177`, the four above now) were read at libressl/openbsd commit `ad3418a862e15ac14ce89ecb3e1989ab9e8739aa` and each cited line holds the prototype named: `pem.h:463` `ERR_load_PEM_strings(void)`, `x509.h:940` `ERR_load_X509_strings(void)`, `evp.h:744` `OpenSSL_add_all_digests(void)`, `ssl.h:722` `SSL_CTX_set_post_handshake_auth(SSL_CTX *, int)`, `ssl.h:1280` `SSL_CTX_set_max_early_data(SSL_CTX *, uint32_t)`, `ssl.h:1736` `SSL_process_quic_post_handshake(SSL *)` and `ssl.h:1764` `SSL_set_quic_use_legacy_codepoint(SSL *, int)`. - Linux and macOS were not built or run. No title was run. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!15591
No description provided.