code wiki / (root) / nx_live_https.nx

nx_live_https.nx

buildroot/runtime/nx_live_https.nx

3312 B67 linesdepth 21pulls 134 transitivereach 0 importersview sourcekind tooltopic live
docsdependenciesstructsconstsfunctions

about

nx_live_https.nx -- full VALIDATED live HTTPS crawl, bits-up end to end. Loads the system CA bundle into our sovereign trust store (nx_pem_loader), then nx_https_get with chain validation against a real HTTPS host. Every layer ours: DNS + TCP + TLS1.3 + X.509 chain validation + HTTP + HTML->text + index.

dependencies 9 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 nx_html_to_text.nx nx_bm25.nx nx_search_inverted.nx nx_live_https.nx

imports: nx_str.nxnx_syscalls.nxnx_csprng.nxnx_x509_trust_store.nxnx_pem_loader.nxnx_https_get.nxnx_html_to_text.nxnx_bm25.nxnx_search_inverted.nx

imported by: nobody (leaf or entry point)

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

main nx_puts sys_write nx_str_len 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 nx_pi nx_putc

structs

none

consts

none

functions

16func nx_putc(c: i64) -> i64 { let b: *u8 = sys_mmap(1); b[0] = c; sys_write(1, b, 1); return 0 }
called by 2: nx_pinx_rep calls 2: sys_mmapsys_write
17func nx_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 2: nx_repmain calls 2: sys_writenx_str_len
18func nx_pi(n: i64) -> i64
called by 2: nx_repmain calls 3: nx_putcsys_mmapsys_write
26func nx_body_off(resp: *u8, n: i64) -> i64
31func nx_rep(text: *u8, tl: i64, q: *u8) -> i64
36func main() -> i64