diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-06 22:53:10 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-06 22:53:10 +0100 |
commit | b6656a1525c925bccc2c22b84fea37102ee10bfa (patch) | |
tree | 05205d286181ef6f64266bb951e5db2e99cdf5bd /libssh/packet.c | |
parent | 84ec17964ed52c23f80f94e0fe23f29948d7d0a6 (diff) | |
download | libssh-b6656a1525c925bccc2c22b84fea37102ee10bfa.tar.gz libssh-b6656a1525c925bccc2c22b84fea37102ee10bfa.tar.xz libssh-b6656a1525c925bccc2c22b84fea37102ee10bfa.zip |
Removed packet_wait for SSH2
Diffstat (limited to 'libssh/packet.c')
-rw-r--r-- | libssh/packet.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/libssh/packet.c b/libssh/packet.c index 4744b014..11587230 100644 --- a/libssh/packet.c +++ b/libssh/packet.c @@ -954,7 +954,7 @@ void packet_parse(ssh_session session) { #endif #ifdef WITH_SSH1 -static int packet_wait1(ssh_session session, int type, int blocking) { +int packet_wait(ssh_session session, int type, int blocking) { enter_function(); @@ -1011,24 +1011,4 @@ static int packet_wait1(ssh_session session, int type, int blocking) { } #endif /* WITH_SSH1 */ -static int packet_wait2(ssh_session session, int type, int blocking) { - int rc = SSH_ERROR; - (void) type; - (void) blocking; - enter_function(); - ssh_log(session,SSH_LOG_RARE,"packet_wait called. BAD!"); - rc=ssh_handle_packets(session); - leave_function(); - return rc; -} - -int packet_wait(ssh_session session, int type, int block) { -#ifdef WITH_SSH1 - if (session->version == 1) { - return packet_wait1(session, type, block); - } -#endif - return packet_wait2(session, type, block); -} - /* vim: set ts=2 sw=2 et cindent: */ |