aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-08-10 00:32:51 +0200
committerAndreas Schneider <asn@cynapses.org>2010-08-10 00:32:51 +0200
commit5aa4592f0c3e7974c37d4baf5c72958a70e9f136 (patch)
tree0f394949d092ed2304eaef2b1fd8c888cae0bb42
parent855b73de8745adfef145dba0b07ab37dcb83c142 (diff)
downloadlibssh-5aa4592f0c3e7974c37d4baf5c72958a70e9f136.tar.gz
libssh-5aa4592f0c3e7974c37d4baf5c72958a70e9f136.tar.xz
libssh-5aa4592f0c3e7974c37d4baf5c72958a70e9f136.zip
example: Fixed build of samplesshd.
-rw-r--r--examples/samplesshd.c4
1 files 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 {