code wiki / (root) / nx_chain_pipeline_real_test.nx

nx_chain_pipeline_real_test.nx

buildroot/runtime/nx_chain_pipeline_real_test.nx

5853 B168 linesdepth 15pulls 78 transitivereach 0 importersview sourcekind gate/prooftopic chain
docsdependenciesstructsconstsfunctions

about

nx_chain_pipeline_real_test.nx -- diagnose cert pipeline against the REAL example.com 4-cert chain saved as DER fixtures in /tmp. Reads /tmp/cert1..4.der (saved via openssl s_client -showcerts), wraps them in a TLS 1.3 Certificate handshake message, loads the real Mozilla bundle, calls nx_https_cert_pipeline_verify_with_store directly, and reports the exact pipeline verdict via exit code. expect_exit: 0 -- but the test PINS the current substrate state via that the verdict is one of the expected ones for the current chain-walker capability. When pipeline OK is reached, the test flips its assertion. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_cert_pipeline.nx nx_chain_pipeline_real_test.nx

imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_cert_pipeline.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_trust_store_load_from_c sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ 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 ↻

structs

none

consts

none

functions

21func read_to(path: *u8, out_buf: *u8, max: i64) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
32func mkpath(out: *u8, num: i64) -> i64
called by 1: main
47func build_cert_msg(out: *u8, derbufs: **u8, derlens: *i64, n: i64) -> i64
called by 1: main
88func dump_dec(label0: i64, label1: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
110func main() -> i64