scp_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.
error_t scpServerInit(ScpServerContext *context, const ScpServerSettings *settings)
Initialize SCP server context.
Definition: scp_server.c:81
void scpServerCloseSession(ScpServerSession *session)
Close an SCP session.
Definition: scp_server_misc.c:389
Helper functions for SCP server.
error_t scpServerSetHomeDir(ScpServerSession *session, const char_t *homeDir)
Set user's home directory.
Definition: scp_server.c:312
error_t sshServerRegisterChannelRequestCallback(SshServerContext *context, SshChannelReqCallback callback, void *param)
Register channel request callback function.
Definition: ssh_server.c:360
error_t sshServerUnregisterChannelRequestCallback(SshServerContext *context, SshChannelReqCallback callback)
Unregister channel request callback function.
Definition: ssh_server.c:376
void scpServerGetDefaultSettings(ScpServerSettings *settings)
Initialize settings with default values.
Definition: scp_server.c:50
error_t scpServerChannelRequestCallback(SshChannel *channel, const SshString *type, const uint8_t *data, size_t length, void *param)
SSH channel request callback.
Definition: scp_server_misc.c:69
void scpServerTick(ScpServerContext *context)
Handle periodic operations.
Definition: scp_server_misc.c:54
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
SCP server.
void scpServerRegisterSessionEvents(ScpServerSession *session, SshChannelEventDesc *eventDesc)
Register session events.
Definition: scp_server_misc.c:429
ScpServerGetFilePermCallback getFilePermCallback
Callback used to retrieve file permissions.
Definition: scp_server.h:196
void scpServerProcessSessionEvents(ScpServerSession *session)
Session event handler.
Definition: scp_server_misc.c:501
error_t scpServerSetRootDir(ScpServerSession *session, const char_t *rootDir)
Set user's root directory.
Definition: scp_server.c:278
void scpServerDeinit(ScpServerContext *context)
Release SCP server context.
Definition: scp_server.c:438
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
Secure Shell (SSH)
ScpServerCheckUserCallback checkUserCallback
User verification callback function.
Definition: scp_server.h:195
Debugging facilities.
void pathCombine(char_t *path, const char_t *more, size_t maxLen)
Concatenate two paths.
Definition: path.c:394