code wiki / (root) / nx_sni_extract.nx

nx_sni_extract.nx

buildroot/runtime/nx_sni_extract.nx

2864 B50 linesdepth 2pulls 2 transitivereach 8 importersview sourcekind librarytopic sni
docsdependenciesstructsconstsfunctions

about

nx_sni_extract.nx -- extract the SNI host_name from a TLS ClientHello WITHOUT decrypting (the SNI is cleartext in the first record). The sovereign SNI router on :443 peeks this to route the raw TCP connection to the right per-property daemon (personal / client / business) -- the multi-tenant hosting platform's front. Inverse of tls13_ext_emit_server_name (RFC 6066 ยง3, host_name only). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 4 importers

nx_syscalls.nx nx_sni_extract.nx nx_sni_cert_select.nx nx_sni_extract_gate.nx nx_sni_router.nx nx_sni_router_gate.nx

imports: nx_syscalls.nx

imported by: nx_sni_cert_select.nxnx_sni_extract_gate.nxnx_sni_router.nxnx_sni_router_gate.nx

structs

none

consts

none

functions

8func sni_u16(buf: *u8, i: i64) -> i64 { return ((buf[i] as i64) << 8) | (buf[i+1] as i64) }
13func sni_extract_hostname(hello: *u8, n: i64, out: *u8, cap: i64) -> i64