mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
channel: Document ssh_channel_request_sftp()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -1964,6 +1964,18 @@ error:
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Request sftp subsystem on the channel
|
||||||
|
*
|
||||||
|
* @param[in] channel The channel to request the sftp subsystem.
|
||||||
|
*
|
||||||
|
* @return SSH_OK on success,
|
||||||
|
* SSH_ERROR if an error occurred,
|
||||||
|
* SSH_AGAIN if in nonblocking mode and call has
|
||||||
|
* to be done again.
|
||||||
|
*
|
||||||
|
* @note You should use sftp_new() which does this for you.
|
||||||
|
*/
|
||||||
int ssh_channel_request_sftp( ssh_channel channel){
|
int ssh_channel_request_sftp( ssh_channel channel){
|
||||||
if(channel == NULL) {
|
if(channel == NULL) {
|
||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user