nx_lib_fetch.nx
buildroot/runtime/nx_lib_fetch.nx
about
nx_lib_fetch.nx -- sovereign HTTPS fetch for the library ingest (retires
httpx). WIRES the team's TLS-1.3 stack exactly as nx_semantic_research_fetch:
load a CA TrustStore, then per URL: parse -> DNS+TCP connect -> TLS-1.3
handshake (cert-verified) -> GET -> response bytes. No OpenSSL, no python.
Ready the moment the network is up; + nx_lib_parse -> nx_lib_store completes
the fetch->parse->store ingest.
license_tier: ORIGINAL | genealogy_id: nishi_library_sovereign_fetch_2026_07_01
dependencies 10 imports · 9 importers
imports: nx_syscalls.nxnx_csprng.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_session_run.nxnx_https_url_for_fetch.nxnx_https_url_connect.nxnx_https_get_complete.nxnx_http_response_parse.nx
imported by: nx_lib_fetch_ingest.nxnx_lib_fetch_probe.nxnx_lib_openalex_probe.nxnx_lib_pdf.nxnx_lib_pmc_fetch.nxnx_lib_pmc_pow.nxnx_lib_pow_decomp.nxnx_lib_verify_probe.nxnx_route_test.nx
structs
| none |
consts
| 19 | const NX_LIB_CERTDATA: *u8 = "data/mozilla_certdata.txt\x00" // repo-shipped Mozilla NSS CA bundle (sovereign asset, no /tmp staging) |
functions
| 22 | func nx_lib_fetch_store() -> *TrustStore |
| 30 | func nx_lib_fetch(store: *TrustStore, url_str: *u8, out_buf: *u8, out_cap: i64) -> i64 |
| 84 | func nx_lib_fetch_status(store: *TrustStore, url_str: *u8, out_buf: *u8, out_cap: i64) -> i64 |