nx_sni_extract.nx
buildroot/runtime/nx_sni_extract.nx
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
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
| 8 | func sni_u16(buf: *u8, i: i64) -> i64 { return ((buf[i] as i64) << 8) | (buf[i+1] as i64) } called by 1: sni_extract_hostname |
| 13 | func sni_extract_hostname(hello: *u8, n: i64, out: *u8, cap: i64) -> i64 |