aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2010-08-10 00:14:03 +0200
committerAndreas Schneider <asn@cynapses.org>2010-08-10 00:30:25 +0200
commit855b73de8745adfef145dba0b07ab37dcb83c142 (patch)
tree866f428455b401c6f143864765e77f43e8cad9e7 /examples
parent136f4d3b0d7475ae212dcf824c3ff624a97a08ad (diff)
downloadlibssh-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.c4
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)