|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
SFTP server subsystem - fs::FS binding. See ssh_sftp.h. More...
Go to the source code of this file.
SFTP server subsystem - fs::FS binding. See ssh_sftp.h.
Binds the pure SFTP v3 codec (services/file_transfer/sftp) to an SSH session channel: accumulates SSH_FXP_* request packets from the channel byte stream, executes them against an fs::FS mount, and frames responses back with pc_ssh_conn_send. A large WRITE is streamed straight to the file (never buffered whole); a READ returns a short DATA (the client re-requests). A fixed handle table holds open files/dirs. Every path is checked for .. traversal (server/fs_path.h) before touching the filesystem.
Definition in file ssh_sftp.cpp.