code wiki / _hdl_build / nx_ssh_put.nx
nx_ssh_put.nx
buildroot/runtime/_hdl_build/nx_ssh_put.nx
about
nx_ssh_put.nx -- SOVEREIGN file-PUT over the team's own SSH client (operator: site-deploy must be a
bits-up Nishi capability, NO 3rd party -- the Auditor flagged scp as the gap). It streams a file as
client->server CHANNEL_DATA into a remote `cat > path`, then CHANNEL_EOF -- the SSH file-transfer the
client lacked. Proven against the LIVE NAS. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_ssh_lib.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
| 7 | const K_MAGIC_1048576: i64 = 1048576 |
| 8 | const K_MAGIC_16384: i64 = 16384 |
| 9 | const K_MAGIC_65536: i64 = 65536 |
| 10 | const K_MAGIC_1024: i64 = 1024 |
functions
| 12 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } return n } called by 1: main |
| 15 | func ssh_put_file(st: *SshState, wcmd: *u8, wcmdlen: i64, data: *u8, datalen: i64) -> i64 |
| 51 | func main() -> i64 |