From 7f973525f70fd23ee2dfa716624862e45e5ae96b Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 21 May 2018 14:03:44 +0800 Subject: parse_ssh{1,2}_packet C code --- src/protocol/internal/ssh_packet.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/protocol/internal/ssh_packet.h') diff --git a/src/protocol/internal/ssh_packet.h b/src/protocol/internal/ssh_packet.h index d8cdaf2..f2ca6e1 100644 --- a/src/protocol/internal/ssh_packet.h +++ b/src/protocol/internal/ssh_packet.h @@ -31,6 +31,10 @@ extern "C" { void make_ssh1_packet(buffer *src, buffer *dest, SSH_CIPHER *); int make_ssh2_packet(buffer *src, buffer *dest, SSH_CIPHER *, SSH_MAC *, bool is_mac_, uint32_t *seq); +/* parse_ssh{1,2}_packet: return the length of the received data */ +int parse_ssh1_packet(buffer *input, buffer *output, SSH_CIPHER *cipher); +int parse_ssh2_packet(buffer *input, buffer *recvbuf, SSH_CIPHER *cipher, + SSH_MAC *mac, bool is_mac, uint32_t *decrypted, uint32_t *seq); #ifdef __cplusplus } -- cgit v1.2.3