From ca499a54956ca778835171688d0d79969aa74dd5 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 24 Jan 2010 22:27:44 +0100 Subject: Made ssh_packet_read asynchronous Normally that's all that was needed into making SSH1 compliant with the new API. Beware, I have only implemented it, not actually tested it. --- include/libssh/packet.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/libssh/packet.h') diff --git a/include/libssh/packet.h b/include/libssh/packet.h index 73ad6820..b03bb8ef 100644 --- a/include/libssh/packet.h +++ b/include/libssh/packet.h @@ -43,21 +43,17 @@ enum ssh_packet_state_e { int packet_send(ssh_session session); #ifdef WITH_SSH1 -int packet_read(ssh_session session); int packet_send1(ssh_session session) ; void ssh_packet_set_default_callbacks1(ssh_session session); SSH_PACKET_CALLBACK(ssh_packet_disconnect1); SSH_PACKET_CALLBACK(ssh_packet_smsg_success1); SSH_PACKET_CALLBACK(ssh_packet_smsg_failure1); +int ssh_packet_socket_callback1(const void *data, size_t receivedlen, void *user); #endif int packet_translate(ssh_session session); -/* TODO: remove it when packet_wait is stripped out from libssh */ -#ifdef WITH_SSH1 -//int packet_wait(ssh_session session,int type,int blocking); -#endif int packet_flush(ssh_session session, int enforce_blocking); -- cgit