From 5aa4592f0c3e7974c37d4baf5c72958a70e9f136 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 10 Aug 2010 00:32:51 +0200 Subject: example: Fixed build of samplesshd. --- examples/samplesshd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/samplesshd.c b/examples/samplesshd.c index 6f540c7..52ab7b9 100644 --- a/examples/samplesshd.c +++ b/examples/samplesshd.c @@ -205,8 +205,8 @@ 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)); + if (ssh_handle_key_exchange(session)) { + printf("ssh_handle_key_exchange: %s\n", ssh_get_error(session)); return 1; } do { -- cgit v1.2.3