diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-05-21 14:03:44 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-05-21 16:46:38 +0800 |
commit | 7f973525f70fd23ee2dfa716624862e45e5ae96b (patch) | |
tree | 8ee01517a92a573cdb7e0ab0a3e15cb6d63c5d9a /src/protocol/internal/ssh_packet.h | |
parent | b44293b115bbe69033ab9c066d301e1f7aaf64cf (diff) | |
download | fqterm-7f973525f70fd23ee2dfa716624862e45e5ae96b.tar.xz |
parse_ssh{1,2}_packet C code
Diffstat (limited to 'src/protocol/internal/ssh_packet.h')
-rw-r--r-- | src/protocol/internal/ssh_packet.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |