summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet.c b/packet.c
index 32d797122..9aeda3936 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.74 2001/12/05 10:06:12 deraadt Exp $"); 40RCSID("$OpenBSD: packet.c,v 1.75 2001/12/19 07:18:56 deraadt Exp $");
41 41
42#include "xmalloc.h" 42#include "xmalloc.h"
43#include "buffer.h" 43#include "buffer.h"
@@ -380,7 +380,7 @@ packet_send1(void)
380 buffer_compress(&outgoing_packet, &compression_buffer); 380 buffer_compress(&outgoing_packet, &compression_buffer);
381 buffer_clear(&outgoing_packet); 381 buffer_clear(&outgoing_packet);
382 buffer_append(&outgoing_packet, buffer_ptr(&compression_buffer), 382 buffer_append(&outgoing_packet, buffer_ptr(&compression_buffer),
383 buffer_len(&compression_buffer)); 383 buffer_len(&compression_buffer));
384 } 384 }
385 /* Compute packet length without padding (add checksum, remove padding). */ 385 /* Compute packet length without padding (add checksum, remove padding). */
386 len = buffer_len(&outgoing_packet) + 4 - 8; 386 len = buffer_len(&outgoing_packet) + 4 - 8;
@@ -414,7 +414,7 @@ packet_send1(void)
414 buffer_append(&output, buf, 4); 414 buffer_append(&output, buf, 4);
415 buffer_append_space(&output, &cp, buffer_len(&outgoing_packet)); 415 buffer_append_space(&output, &cp, buffer_len(&outgoing_packet));
416 cipher_encrypt(&send_context, cp, buffer_ptr(&outgoing_packet), 416 cipher_encrypt(&send_context, cp, buffer_ptr(&outgoing_packet),
417 buffer_len(&outgoing_packet)); 417 buffer_len(&outgoing_packet));
418 418
419#ifdef PACKET_DEBUG 419#ifdef PACKET_DEBUG
420 fprintf(stderr, "encrypted: "); 420 fprintf(stderr, "encrypted: ");
@@ -1277,7 +1277,7 @@ packet_send_ignore(int nbytes)
1277 1277
1278 packet_start(compat20 ? SSH2_MSG_IGNORE : SSH_MSG_IGNORE); 1278 packet_start(compat20 ? SSH2_MSG_IGNORE : SSH_MSG_IGNORE);
1279 packet_put_int(nbytes); 1279 packet_put_int(nbytes);
1280 for(i = 0; i < nbytes; i++) { 1280 for (i = 0; i < nbytes; i++) {
1281 if (i % 4 == 0) 1281 if (i % 4 == 0)
1282 rand = arc4random(); 1282 rand = arc4random();
1283 packet_put_char(rand & 0xff); 1283 packet_put_char(rand & 0xff);