code wiki / (root) / _wt_probe_one.nx

_wt_probe_one.nx

buildroot/runtime/_wt_probe_one.nx

1764 B40 linesdepth 21pulls 129 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

_wt_probe_one.nx -- single-host WALL PROBE unit for nx_wall_triage. Runs the full sovereign HTTPS fetch and exits with the STAGE that refused us, so the parent can NAME the wall instead of a flat rc=2: exit 0 = HTTP reached (status line + header head written to argv[2] -- an HTTP-level wall like 403 is visible there) exit 12 = bad url exit 13 = DNS/TCP connect refused exit 14 = TLS handshake refused (ClientHello-fingerprint suspect) exit 15 = TLS up, HTTP fetch failed (send/read) exit 3 = bad args Child of nx_guarded_run (a hang is reaped as 124). usage: _wt_probe_one <url> <out>

dependencies 6 imports · 0 importers

nx_str.nx nx_syscalls.nx nx_csprng.nx nx_x509_trust_store.nx nx_pem_loader.nx nx_https_get.nx _wt_probe_one.nx

imports: nx_str.nxnx_syscalls.nxnx_csprng.nxnx_x509_trust_store.nxnx_pem_loader.nxnx_https_get.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main trust_store_alloc sys_mmap nx_pem_trust_load_file sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_pem_trust_load nx_str_len _pem_find nx_str_len ↻ sys_mmap ↻ b64_decode b64_grab b64_dec_char x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id sys_mmap ↻ asn1_expect_tag ↻ trust_store_add sys_mmap ↻ nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd ↻

structs

none

consts

none

functions

18func main(argc: i64, argv: *i64) -> i64