|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
SCP server - fs::FS binding (SINK direction). See ssh_scp.h. More...
Go to the source code of this file.
SCP server - fs::FS binding (SINK direction). See ssh_scp.h.
Drives the rcp SINK protocol over an SSH exec "scp -t <path>" channel: send a ready ack, read the client's C<mode> <size> <name> control line, ack it, stream <size> data bytes straight to an fs::FS file, read the trailing end-of-record byte, and send the final ack. One file per transfer (no -r); the SOURCE direction (scp -f) replies "use sftp get". Every path is checked for .. traversal before opening the file.
Definition in file ssh_scp.cpp.