Skip to content

Registry facades Bundle 7: c.openssl, c.libnghttp2, c.libssh2 + D256 WCL extensions - #3670

Merged
ehartford merged 7 commits into
mainfrom
bundle7-facades
Nov 28, 2026
Merged

ehartford merged 7 commits into
mainfrom
bundle7-facades

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Completes the final Bundle 7 C library registry facades and zero-unsafe UATs under Epic #3115:

Closes #3141
Closes #3144
Closes #3145

Summary

Compiler & WCL (D256 + fixes)

  • D256 (f74d0a289): adds static singleton *const T resources (returns static <Resource>), multi-rename dispatch on one C function (rename), borrowed return-length out-buffers (buffer out param P len return), and name-value header slices / output pairs (nv_slice, nv_out). Also narrows header-only binary drafting (>16 sub-headers) to headers cited in facts.with, with test/behavior/behav_d256_static_multi_nv_and_outret.with passing regular and --debug-alloc (0 leaks).
  • c_import & WCL fixes (62818576f): preserves raw-function tracking across multi-header c_imports, normalizes CT_FN_PTR void returns to Unit, emits clang-probed string-valued object macros (e.g. OPENSSL_FILE) as str, and allows param N fixed null on optional non-receiver resources/out-pointers.
  • FacadeRender fix (fb21d9ead): fixes D214 parent receiver forwarding methods to forward only presented parameters (facade_render_forward_names), not absorbed buffer-length parameters.

Registry Facades & Zero-Unsafe UATs

  • c.openssl (#3141, bc6bd7f08): registry/c/openssl/facts.with (101/101 safe, 0 raw), uat/openssl.uat (darwin, linux-x86_64), and uat/fixtures/openssl_main.with (SHA-256, AES-256-GCM + AAD + tamper fail, RSA-2048 & ECDSA P-256 sign/verify + tamper fail, loopback TLS with self-signed X.509 cert + SSL_VERIFY_PEER).
  • c.libnghttp2 (#3144, b8f717511): registry/c/libnghttp2/facts.with (125/181 safe, 0 contradictions), uat/libnghttp2.uat (darwin, linux, windows), and uat/fixtures/libnghttp2_main.with (client & server HTTP/2 sessions with callbacks, request/response frame exchange via mem_send2/mem_recv2, and HPACK deflate/inflate roundtrip).
  • c.libssh2 (#3145, a6070b38c): registry/c/libssh2/facts.with (91/138 safe, 0 contradictions), uat/libssh2.uat (darwin, linux-x86_64), and uat/fixtures/libssh2_main.with (loopback non-root sshd ed25519 key auth, remote exec stdout + exit status, SFTP write/read/fstat/unlink).

Verification

  • Seed-driven battery (WITH=$PWD/src/main with run tools/battery.with) running on a6070b38c; verdict will be posted once complete.

@ehartford

Copy link
Copy Markdown
Contributor Author

Seed-driven battery on e73eebe94 (WITH=$PWD/src/main WITH_CODEGEN_EMIT_WIDTH=2 with run tools/battery.with):

out/battery/battery.log: rc=0 green
battery rc=0 wall=1586s
uat: 35 scenarios: 34 pass, 1 skip
  uat: openssl      pass (7 steps, 185.4s)
  uat: libnghttp2   pass (7 steps, 8.7s)
  uat: libssh2      pass (7 steps, 92.9s)
  uat: harfbuzz     pass (7 steps, 124.0s)

@ehartford
ehartford marked this pull request as ready for review November 28, 2026 08:34
@ehartford
ehartford merged commit e1491f3 into main Nov 28, 2026
1 check passed
@ehartford
ehartford deleted the bundle7-facades branch November 28, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant