sftp_server_misc.h
uint_t sftpServerGetFilePermissions(SftpServerSession *session, const char_t *path)
Get permissions for the specified file or directory.
Definition: sftp_server_misc.c:852
const char_t * sftpServerStripRootDir(SftpServerSession *session, const char_t *path)
Strip root dir from specified pathname.
Definition: sftp_server_misc.c:971
error_t sftpServerParsePacketLength(SftpServerSession *session, const uint8_t *packet)
Retrieve the length of an incoming SFTP packet.
Definition: sftp_server_misc.c:574
SFTP server.
error_t sftpServerChannelRequestCallback(SshChannel *channel, const SshString *type, const uint8_t *data, size_t length, void *param)
SSH channel request callback.
Definition: sftp_server_misc.c:71
error_t sftpServerGetPath(SftpServerSession *session, const SshString *path, char_t *fullPath, size_t maxLen)
Retrieve the full pathname.
Definition: sftp_server_misc.c:905
SftpServerSession * sftpServerFindSession(SftpServerContext *context, SshChannel *channel)
Find the SFTP session that matches a given SSH channel.
Definition: sftp_server_misc.c:165
void sftpServerCloseSession(SftpServerSession *session)
Close an SFTP session.
Definition: sftp_server_misc.c:246
void sftpServerProcessSessionEvents(SftpServerSession *session)
Session event handler.
Definition: sftp_server_misc.c:384
void sftpServerTick(SftpServerContext *context)
Handle periodic operations.
Definition: sftp_server_misc.c:56
uint32_t sftpServerGenerateHandle(SftpServerSession *session)
Generate a unique handle.
Definition: sftp_server_misc.c:803
SftpServerSession * sftpServerOpenSession(SftpServerContext *context, SshChannel *channel)
Open a new SFTP session.
Definition: sftp_server_misc.c:200
void sftpServerRegisterSessionEvents(SftpServerSession *session, SshChannelEventDesc *eventDesc)
Register session events.
Definition: sftp_server_misc.c:302
error_t sftpServerParsePacket(SftpServerSession *session, const uint8_t *packet, size_t fragLen, size_t totalLen)
SFTP packet processing.
Definition: sftp_server_misc.c:635