Modified server API

This commit is contained in:
Aris Adamantiadis
2009-10-09 21:26:15 +02:00
parent 9c667ebc26
commit 2e9c13dad0
3 changed files with 38 additions and 52 deletions

View File

@@ -114,7 +114,7 @@ LIBSSH_API void ssh_bind_fd_toaccept(SSH_BIND *ssh_bind);
*
* @return A newly allocated ssh session, NULL on error.
*/
LIBSSH_API ssh_session ssh_bind_accept(SSH_BIND *ssh_bind);
LIBSSH_API int ssh_bind_accept(SSH_BIND *ssh_bind, ssh_session session);
/**
* @brief Free a ssh servers bind.