diff options
author | milo <milo@r0ot.me> | 2010-08-10 00:14:03 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-08-10 00:30:25 +0200 |
commit | 855b73de8745adfef145dba0b07ab37dcb83c142 (patch) | |
tree | 866f428455b401c6f143864765e77f43e8cad9e7 /include/libssh/server.h | |
parent | 136f4d3b0d7475ae212dcf824c3ff624a97a08ad (diff) | |
download | libssh-855b73de8745adfef145dba0b07ab37dcb83c142.tar.gz libssh-855b73de8745adfef145dba0b07ab37dcb83c142.tar.xz libssh-855b73de8745adfef145dba0b07ab37dcb83c142.zip |
server: Split ssh_bind_accept and create ssh_handle_key_exchange.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Diffstat (limited to 'include/libssh/server.h')
-rw-r--r-- | include/libssh/server.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h index 10791659..70b4bd60 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -120,11 +120,20 @@ LIBSSH_API void ssh_bind_fd_toaccept(ssh_bind ssh_bind_o); * @param ssh_bind_o The ssh server bind to accept a connection. * @param session A preallocated ssh session * @see ssh_new - * @return A newly allocated ssh session, NULL on error. + * @return SSH_OK when a connection is established */ LIBSSH_API int ssh_bind_accept(ssh_bind ssh_bind_o, ssh_session session); /** + * @brief Handles the key exchange and set up encryption + * + * @param session A connected ssh session + * @see ssh_bind_accept + * @return SSH_OK if the key exchange was successful + */ +LIBSSH_API int ssh_handle_key_exchange(ssh_session session); + +/** * @brief Free a ssh servers bind. * * @param ssh_bind_o The ssh server bind to free. |