ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
sftp.h File Reference

SFTP protocol v3 wire codec (SSH_FXP_*, draft-ietf-secsh-filexfer-02) - the pure, host-testable half of the SSH SFTP subsystem (PC_ENABLE_SSH_SFTP). More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

SFTP protocol v3 wire codec (SSH_FXP_*, draft-ietf-secsh-filexfer-02) - the pure, host-testable half of the SSH SFTP subsystem (PC_ENABLE_SSH_SFTP).

SFTP runs as an SSH "subsystem" over a session channel: length-prefixed packets, each uint32 length || byte type || …. This file parses request packets and builds response packets into caller buffers - no filesystem, no SSH, no Arduino, zero heap. The fs::FS binding + the channel glue live in server/ssh_sftp.

Everything is big-endian (SSH wire order). A "string" is a uint32 length || bytes field (not NUL-terminated). Version 3 is the de-facto standard (the OpenSSH sftp client's default).

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file sftp.h.