1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-28 01:41:48 +03:00

server: Split ssh_bind_accept and create ssh_handle_key_exchange.

Signed-off-by: Andreas Schneider <asn@cynapses.org>
This commit is contained in:
milo
2010-08-10 00:14:03 +02:00
committed by Andreas Schneider
parent 136f4d3b0d
commit 855b73de87
4 changed files with 23 additions and 5 deletions

View File

@ -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)