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 /examples | |
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 'examples')
-rw-r--r-- | examples/samplesshd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/samplesshd.c b/examples/samplesshd.c index 1af866ca..6f540c7d 100644 --- a/examples/samplesshd.c +++ b/examples/samplesshd.c @@ -205,6 +205,10 @@ int main(int argc, char **argv){ printf("error accepting a connection : %s\n",ssh_get_error(sshbind)); return 1; } + if (ssh_bind_accept(session)) { + printf("ssh_bind_accept: %s\n", ssh_get_error(session)); + return 1; + } do { message=ssh_message_get(session); if(!message) |