diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | RCSID("$OpenBSD: packet.c,v 1.112 2003/09/23 20:17:11 markus Exp $"); | 40 | RCSID("$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 | ||
1452 | u_int | 1454 | int |
1453 | packet_set_maxsize(u_int s) | 1455 | packet_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) |
1507 | int | 1509 | int |
1508 | packet_need_rekeying(void) | 1510 | packet_need_rekeying(void) |
1509 | { | 1511 | { |