diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-23 22:59:10 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-23 22:59:10 +0100 |
commit | 68f53540dfbd1cc077f8a91587335207fd7ee5c0 (patch) | |
tree | 6bd17d77a36907bb36bd4544eb2c37a94563c116 /include | |
parent | 48ba9c9bc1b6845a2c65773e91fd95a82e2f71aa (diff) | |
download | libssh-68f53540dfbd1cc077f8a91587335207fd7ee5c0.tar.gz libssh-68f53540dfbd1cc077f8a91587335207fd7ee5c0.tar.xz libssh-68f53540dfbd1cc077f8a91587335207fd7ee5c0.zip |
Move SSH-1 specific packet functions in packet1.c
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/packet.h | 12 |
1 files changed, 12 insertions, 0 deletions
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); |