Mercurial > dropbear
comparison packet.c @ 1278:0c47d97aa9d5
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 16 Mar 2016 22:53:27 +0800 |
parents | 9169e4e7cbee |
children | b28624698130 06d52bcb8094 |
comparison
equal
deleted
inserted
replaced
1264:a20b6af6f182 | 1278:0c47d97aa9d5 |
---|---|
34 #include "service.h" | 34 #include "service.h" |
35 #include "auth.h" | 35 #include "auth.h" |
36 #include "channel.h" | 36 #include "channel.h" |
37 #include "netio.h" | 37 #include "netio.h" |
38 | 38 |
39 static int read_packet_init(); | 39 static int read_packet_init(void); |
40 static void make_mac(unsigned int seqno, const struct key_context_directional * key_state, | 40 static void make_mac(unsigned int seqno, const struct key_context_directional * key_state, |
41 buffer * clear_buf, unsigned int clear_len, | 41 buffer * clear_buf, unsigned int clear_len, |
42 unsigned char *output_mac); | 42 unsigned char *output_mac); |
43 static int checkmac(); | 43 static int checkmac(void); |
44 | 44 |
45 /* For exact details see http://www.zlib.net/zlib_tech.html | 45 /* For exact details see http://www.zlib.net/zlib_tech.html |
46 * 5 bytes per 16kB block, plus 6 bytes for the stream. | 46 * 5 bytes per 16kB block, plus 6 bytes for the stream. |
47 * We might allocate 5 unnecessary bytes here if it's an | 47 * We might allocate 5 unnecessary bytes here if it's an |
48 * exact multiple. */ | 48 * exact multiple. */ |