code wiki / (root) / nx_cert_monitor_gate.nx

nx_cert_monitor_gate.nx

buildroot/runtime/nx_cert_monitor_gate.nx

3377 B56 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic cert
docsdependenciesstructsconstsfunctions

about

nx_cert_monitor_gate.nx -- KAT for the cert-expiry monitor. Hand-builds a validity field (two UTCTime TLVs), extracts notAfter via the REUSED x509_validity_get (epoch seconds), and asserts the days-until + verdict across OK / WARN(expiring) / EXPIRED. exit 0 = pass, N = assertion N failed.

dependencies 2 imports · 0 importers

nx_cert_monitor.nx nx_assert.nx nx_cert_monitor_gate.nx

imports: nx_cert_monitor.nxnx_assert.nx

imported by: nobody (leaf or entry point)

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

main g_time nx_puts_err sys_write nx_puti_err sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_write ↻ cm_days_until cm_verdict cm_days_until ↻ cm_status cm_read cm_days_until ↻ cm_verdict ↻

structs

none

consts

none

functions

8func g_time(buf: *u8, off: i64, s: *u8) -> i64
called by 1: main
14func main() -> i64