summaryrefslogtreecommitdiff
path: root/src/protocol/internal/ssh_packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/internal/ssh_packet.h')
-rw-r--r--src/protocol/internal/ssh_packet.h4
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
}