code wiki / _hdl_build / nx_audio_gate_proof_test.nx
nx_audio_gate_proof_test.nx
buildroot/runtime/_hdl_build/nx_audio_gate_proof_test.nx
about
nx_audio_gate_proof_test.nx -- prove the /audio protection DETERMINISTICALLY.
The opaque daemon's GET /audio serves the page iff olg_whoami(token)==NX_MAUTH_OK.
This gate runs that exact decision in-process: register -> login -> a VALID
session passes (would SERVE); an EMPTY or BOGUS token is rejected (would 401).
No daemon/network -> no flakiness. expect_exit: 0.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_opaque_login.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 10 | func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 11 | func wn(v: i64) -> i64 |
| 20 | func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64 |
| 26 | func main() -> i64 |