Add consistency check to ssh_set_callbacks

This commit is contained in:
Aris Adamantiadis
2010-07-23 08:09:57 +02:00
parent a924869096
commit 5aa9cf2fcf
3 changed files with 12 additions and 4 deletions

View File

@@ -244,7 +244,7 @@ typedef struct ssh_packet_callbacks_struct *ssh_packet_callbacks;
*
* @param cb The callback itself.
*
* @return 0 on success, < 0 on error.
* @return SSH_OK on success, SSH_ERROR on error.
*/
LIBSSH_API int ssh_set_callbacks(ssh_session session, ssh_callbacks cb);