feat(libSceLibreSsl): implement ASN1_STRING_print #16241

Closed
nabil88 wants to merge 1 commit from upstream-pr/16241 into main
nabil88 commented 2026-11-05 22:12:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by nabil88 on 2026-11-05T22:12:52Z.


What

ASN1_STRING_print in libSceLibreSsl threw through NotImplemented_nid_no_patch. It now writes the string's printable bytes unchanged, replaces other bytes except newline and carriage return with ., and flushes in 80-byte chunks, following LibreSSL a_string.c. It returns 0 for a null string and when a write fails. The console behavior is not verified.

Tested

Windows, WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON:

  • ctest --test-dir build-full -R "guest_libressl_asn1" passes guest_libressl_asn1 and guest_libressl_asn1_allocator, including the new printable-replacement, empty and 80-byte-chunk checks.
  • python tools/check_conventions.py --base origin/main passes.
  • pr_overlap reports no overlap with any open pull request.

Not tested on a console; the behavior follows the public LibreSSL source, unverified against the console.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5179505365 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16241). Originally posted by [nabil88](https://github.com/nabil88) on 2026-11-05T22:12:52Z. --- ### What `ASN1_STRING_print` in libSceLibreSsl threw through `NotImplemented_nid_no_patch`. It now writes the string's printable bytes unchanged, replaces other bytes except newline and carriage return with `.`, and flushes in 80-byte chunks, following LibreSSL `a_string.c`. It returns 0 for a null string and when a write fails. The console behavior is not verified. ### Tested Windows, WinLibs GCC 15.2.0, Release, `BUILD_TESTING=ON`: - `ctest --test-dir build-full -R "guest_libressl_asn1"` passes `guest_libressl_asn1` and `guest_libressl_asn1_allocator`, including the new printable-replacement, empty and 80-byte-chunk checks. - `python tools/check_conventions.py --base origin/main` passes. - `pr_overlap` reports no overlap with any open pull request. Not tested on a console; the behavior follows the public LibreSSL source, unverified against the console. ### Checklist - [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

Pull request closed

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!16241
No description provided.