Improve channel_request_shell().

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@696 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-05-04 06:58:32 +00:00
parent 0e6359c63d
commit 8060f51ec7

View File

@@ -1179,15 +1179,18 @@ error:
return rc;
}
/** \brief requests a shell
* \param channel
* \returns SSH_SUCCESS on success\n
* SSH_ERROR on error
/**
* @brief Request a shell.
*
* @param channel The channel to send the request.
*
* @returns SSH_SUCCESS on success, SSH_ERROR on error.
*/
int channel_request_shell(CHANNEL *channel) {
#ifdef HAVE_SSH1
if(channel->version==1)
if (channel->version == 1) {
return channel_request_shell1(channel);
}
#endif
return channel_request(channel, "shell", NULL, 1);
}