sftp_server.c
OsTaskId osCreateTask(const char_t *name, OsTaskCode taskCode, void *arg, const OsTaskParameters *params)
Create a task.
Definition: os_port_chibios.c:80
Path manipulation helper functions.
void sftpServerCloseSession(SftpServerSession *session)
Close an SFTP session.
Definition: sftp_server_misc.c:246
SftpServerCheckUserCallback checkUserCallback
User verification callback function.
Definition: sftp_server.h:211
error_t sshServerRegisterChannelRequestCallback(SshServerContext *context, SshChannelReqCallback callback, void *param)
Register channel request callback function.
Definition: ssh_server.c:360
error_t sftpServerSetHomeDir(SftpServerSession *session, const char_t *homeDir)
Set user's home directory.
Definition: sftp_server.c:331
error_t sshServerUnregisterChannelRequestCallback(SshServerContext *context, SshChannelReqCallback callback)
Unregister channel request callback function.
Definition: ssh_server.c:376
SFTP server.
void sftpServerRegisterSessionEvents(SftpServerSession *session, SshChannelEventDesc *eventDesc)
Register session events.
Definition: sftp_server_misc.c:302
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
void sftpServerProcessSessionEvents(SftpServerSession *session)
Session event handler.
Definition: sftp_server_misc.c:384
error_t sshPollChannels(SshChannelEventDesc *eventDesc, uint_t size, OsEvent *extEvent, systime_t timeout)
Wait for one of a set of channels to become ready to perform I/O.
Definition: ssh.c:2376
void sftpServerDeinit(SftpServerContext *context)
Release SFTP server context.
Definition: sftp_server.c:457
void sftpServerGetDefaultSettings(SftpServerSettings *settings)
Initialize settings with default values.
Definition: sftp_server.c:50
error_t sftpServerInit(SftpServerContext *context, const SftpServerSettings *settings)
Initialize SFTP server context.
Definition: sftp_server.c:85
Helper functions for SFTP server.
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
void pathRemoveSlash(char_t *path)
Remove the trailing slash from a given path.
Definition: path.c:360
SftpServerGetFilePermCallback getFilePermCallback
Callback used to retrieve file permissions.
Definition: sftp_server.h:212
error_t sftpServerSetRootDir(SftpServerSession *session, const char_t *rootDir)
Set user's root directory.
Definition: sftp_server.c:297
Secure Shell (SSH)
void sftpServerTick(SftpServerContext *context)
Handle periodic operations.
Definition: sftp_server_misc.c:56
Debugging facilities.
void pathCombine(char_t *path, const char_t *more, size_t maxLen)
Concatenate two paths.
Definition: path.c:394