Skip to content

refactor(tls): move the OpenSSL bindings into their own package, pkg/tls - #506

Merged
x-ror merged 2 commits into
masterfrom
refactor/tls-package
Nov 18, 2026
Merged

x-ror merged 2 commits into
masterfrom
refactor/tls-package

Conversation

@x-ror

@x-ror x-ror commented Nov 18, 2026

Copy link
Copy Markdown
Owner

What changed

tls.odin and the platform root hooks move out of pkg/runtime into pkg/tls, unchanged apart from one added constant (SSL_ERROR_SSL). fetch_tls, net and the https server import openssl "lava:pkg/tls". CLAUDE.md's layering table and docs/ARCHITECTURE.md §3.5 name the package.

Why

The bindings have no runtime or JSC dependency, so a JS-free client can share them. Larva's new HTTP client does (x-ror/larva#76). Making the same move here keeps the next Lava→Larva sync from hitting a modify/rename conflict.

Checked

No behavior change intended. CI's Checks job targets pass locally (make check on all three targets, bun run js:check, make check-md, make check-actions), make build succeeds, and an https fetch() through lava eval returns the page. pkg/tls and the three runtime files that use it are byte-identical to Larva's. No tests, on the owner's instruction for this phase.

🤖 Generated with Claude Code

x-ror and others added 2 commits November 18, 2026 23:42
tls.odin and the platform root hooks move out of pkg/runtime unchanged, plus
one constant (SSL_ERROR_SSL). fetch_tls, net and the https server import
`openssl "lava:pkg/tls"`. The bindings have no runtime or JSC dependency, so a
JS-free client can share them; Larva's pkg/http does (x-ror/larva#76), and the
move is made here too so the next sync does not hit a modify/rename conflict.

No behavior change. Checked: CI's Checks job targets (make check on all three
targets, bun run js:check, make check-md, make check-actions), make build, and
an https fetch() through lava eval. No tests: paused for this phase.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Needed by Larva's HTTP client to tell a peer that closes without close_notify
from a TLS failure (x-ror/larva#76); added here so pkg/tls stays identical in
both repos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@x-ror
x-ror merged commit a976f9a into master Nov 18, 2026
6 checks passed
@x-ror
x-ror deleted the refactor/tls-package branch November 18, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant