scp_server_misc.h
ScpServerSession * scpServerFindSession(ScpServerContext *context, SshChannel *channel)
Find the SCP session that matches a given SSH channel.
Definition: scp_server_misc.c:308
uint_t scpServerGetFilePermissions(ScpServerSession *session, const char_t *path)
Get permissions for the specified file or directory.
Definition: scp_server_misc.c:1125
void scpServerParseCommandLine(ScpServerSession *session, const SshExecParams *requestParams)
SCP command line parsing.
Definition: scp_server_misc.c:170
error_t scpServerSendDirective(ScpServerSession *session, const ScpDirective *directive)
Send a SCP directive to the client.
Definition: scp_server_misc.c:837
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
const char_t * scpServerStripRootDir(ScpServerSession *session, const char_t *path)
Strip root dir from specified pathname.
Definition: scp_server_misc.c:1246
SCP server.
void scpServerRegisterSessionEvents(ScpServerSession *session, SshChannelEventDesc *eventDesc)
Register session events.
Definition: scp_server_misc.c:429
void scpServerProcessSessionEvents(ScpServerSession *session)
Session event handler.
Definition: scp_server_misc.c:501
error_t scpServerGetPath(ScpServerSession *session, const SshString *path, char_t *fullPath, size_t maxLen)
Retrieve the full pathname.
Definition: scp_server_misc.c:1178
void scpServerCloseSession(ScpServerSession *session)
Close an SCP session.
Definition: scp_server_misc.c:389
void scpServerProcessDirective(ScpServerSession *session, const ScpDirective *directive)
Process SCP directive.
Definition: scp_server_misc.c:1008
Global request and channel request handling.
ScpServerSession * scpServerOpenSession(ScpServerContext *context, SshChannel *channel)
Open a new SCP session.
Definition: scp_server_misc.c:343
error_t scpServerReceiveDirective(ScpServerSession *session, ScpDirective *directive)
Receive a SCP directive from the client.
Definition: scp_server_misc.c:896