summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-05-13 16:39:33 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-05-13 16:39:33 +1000
commit1f8311c836a20ce4923e2142d206f8d8073d0ca4 (patch)
tree93c92ccf9709d18faa075fb2b3c5fda4d969b28a /packet.c
parentb42714e28bcb22c5b52b0266813165cf5e7e9ccb (diff)
- deraadt@cvs.openbsd.org 2004/05/11 19:01:43
[auth.c auth2-none.c authfile.c channels.c monitor.c monitor_mm.c packet.c packet.h progressmeter.c session.c openbsd-compat/xmmap.c] improve some code lint did not like; djm millert ok
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/packet.c b/packet.c
index daae9ffaa..fe3eea094 100644
--- a/packet.c
+++ b/packet.c
@@ -37,7 +37,7 @@
37 */ 37 */
38 38
39#include "includes.h" 39#include "includes.h"
40RCSID("$OpenBSD: packet.c,v 1.112 2003/09/23 20:17:11 markus Exp $"); 40RCSID("$OpenBSD: packet.c,v 1.113 2004/05/11 19:01:43 deraadt Exp $");
41 41
42#include "openbsd-compat/sys-queue.h" 42#include "openbsd-compat/sys-queue.h"
43 43
@@ -154,8 +154,10 @@ packet_set_connection(int fd_in, int fd_out)
154 fatal("packet_set_connection: cannot load cipher 'none'"); 154 fatal("packet_set_connection: cannot load cipher 'none'");
155 connection_in = fd_in; 155 connection_in = fd_in;
156 connection_out = fd_out; 156 connection_out = fd_out;
157 cipher_init(&send_context, none, "", 0, NULL, 0, CIPHER_ENCRYPT); 157 cipher_init(&send_context, none, (const u_char *)"",
158 cipher_init(&receive_context, none, "", 0, NULL, 0, CIPHER_DECRYPT); 158 0, NULL, 0, CIPHER_ENCRYPT);
159 cipher_init(&receive_context, none, (const u_char *)"",
160 0, NULL, 0, CIPHER_DECRYPT);
159 newkeys[MODE_IN] = newkeys[MODE_OUT] = NULL; 161 newkeys[MODE_IN] = newkeys[MODE_OUT] = NULL;
160 if (!initialized) { 162 if (!initialized) {
161 initialized = 1; 163 initialized = 1;
@@ -1449,7 +1451,7 @@ packet_is_interactive(void)
1449 return interactive_mode; 1451 return interactive_mode;
1450} 1452}
1451 1453
1452u_int 1454int
1453packet_set_maxsize(u_int s) 1455packet_set_maxsize(u_int s)
1454{ 1456{
1455 static int called = 0; 1457 static int called = 0;
@@ -1503,7 +1505,7 @@ packet_send_ignore(int nbytes)
1503 } 1505 }
1504} 1506}
1505 1507
1506#define MAX_PACKETS (1<<31) 1508#define MAX_PACKETS (1U<<31)
1507int 1509int
1508packet_need_rekeying(void) 1510packet_need_rekeying(void)
1509{ 1511{