code wiki / _hdl_build / nx_sites_sni_cert_gate.nx
nx_sites_sni_cert_gate.nx
buildroot/runtime/_hdl_build/nx_sites_sni_cert_gate.nx
dependencies 12 imports · 0 importers
diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.
imports: nx_gate_base.nxnx_connect.nxnx_syscalls.nxnx_csprng.nxnx_http_server.nxnx_sni_cert_select.nxnx_tls13_record.nxnx_tls13_read_record_from_fd.nxnx_tls13_server_session.nxnx_tls13_server_session_run.nxnx_tls13_client_session.nxnx_tls13_client_session_recv_sh.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 48 | const GATE_PORT: i64 = 18443 |
| 49 | const GATE_CERT_MIN: i64 = 100 |
| 50 | const NX_SD_MSG_PEEK_GATE: i64 = 2 // MSG_PEEK |
functions
| 52 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 54 | func g_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 55 | func g_puti(v: i64) -> i64 |
| 62 | func g_putidx(idx: i64) -> i64 |
| 68 | func g_mem_eq(a: *u8, b: *u8, n: i64) -> i64 |
| 71 | func g_write_n(fd: i64, buf: *u8, n: i64) -> i64 |
| 80 | func mk_ch(buf: *u8, host: *u8, hlen: i64) -> i64 |
| 108 | func unit_check(host: *u8, hlen: i64, expect_idx: i64) -> i64 |
| 120 | func g_identify(leaf: *u8, leaf_len: i64, |
| 129 | func g_connect(port: i64) -> i64 |
| 145 | func g_probe(port: i64, sni: *u8, sni_len: i64, |
| 242 | func g_serve_one(cfd: i64, |
| 262 | func e2e_one(lfd: i64, port: i64, label: *u8, sni: *u8, sni_len: i64, expect: i64, |
| 283 | func main() -> i64 |