From 68f53540dfbd1cc077f8a91587335207fd7ee5c0 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sat, 23 Jan 2010 22:59:10 +0100 Subject: Move SSH-1 specific packet functions in packet1.c --- include/libssh/packet.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/packet.h b/include/libssh/packet.h index fc66582..f0466a8 100644 --- a/include/libssh/packet.h +++ b/include/libssh/packet.h @@ -29,10 +29,22 @@ typedef struct packet_struct { uint8_t type; } PACKET; +/** different state of packet reading. */ +enum ssh_packet_state_e { + /** Packet not initialized, must read the size of packet */ + PACKET_STATE_INIT, + /** Size was read, waiting for the rest of data */ + PACKET_STATE_SIZEREAD, + /** Full packet was read and callbacks are being called. Future packets + * should wait for the end of the callback. */ + PACKET_STATE_PROCESSING +}; + int packet_send(ssh_session session); #ifdef WITH_SSH1 int packet_read(ssh_session session); +int packet_send1(ssh_session session) ; #endif int packet_translate(ssh_session session); -- cgit