aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh/server.h')
-rw-r--r--include/libssh/server.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h
index 7e660ce..1c315d5 100644
--- a/include/libssh/server.h
+++ b/include/libssh/server.h
@@ -132,13 +132,15 @@ LIBSSH_API int ssh_bind_accept(ssh_bind ssh_bind_o, ssh_session session);
LIBSSH_API void ssh_bind_free(ssh_bind ssh_bind_o);
/**
- * @brief Exchange the banner and cryptographic keys.
+ * @brief Accept the incoming connections.
+ *
+ * This exchanges the banner and cryptographic keys.
*
* @param session The ssh session to accept a connection.
*
* @return 0 on success, < 0 on error.
*/
-LIBSSH_API int ssh_accept(ssh_session session);
+LIBSSH_API int ssh_bind_accept(ssh_session session);
LIBSSH_API int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len);