summaryrefslogtreecommitdiff
path: root/compress.c
diff options
context:
space:
mode:
Diffstat (limited to 'compress.c')
-rw-r--r--compress.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/compress.c b/compress.c
index ee5cdccb5..610aaf7e6 100644
--- a/compress.c
+++ b/compress.c
@@ -1,20 +1,20 @@
1/* 1/*
2 * 2 *
3 * compress.c 3 * compress.c
4 * 4 *
5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 * 6 *
7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 * All rights reserved 8 * All rights reserved
9 * 9 *
10 * Created: Wed Oct 25 22:12:46 1995 ylo 10 * Created: Wed Oct 25 22:12:46 1995 ylo
11 * 11 *
12 * Interface to packet compression for ssh. 12 * Interface to packet compression for ssh.
13 * 13 *
14 */ 14 */
15 15
16#include "includes.h" 16#include "includes.h"
17RCSID("$Id: compress.c,v 1.5 2000/04/01 01:09:24 damien Exp $"); 17RCSID("$Id: compress.c,v 1.6 2000/04/16 01:18:42 damien Exp $");
18 18
19#include "ssh.h" 19#include "ssh.h"
20#include "buffer.h" 20#include "buffer.h"
@@ -28,7 +28,7 @@ static z_stream outgoing_stream;
28 * (as in gzip). 28 * (as in gzip).
29 */ 29 */
30 30
31void 31void
32buffer_compress_init(int level) 32buffer_compress_init(int level)
33{ 33{
34 debug("Enabling compression at level %d.", level); 34 debug("Enabling compression at level %d.", level);
@@ -40,7 +40,7 @@ buffer_compress_init(int level)
40 40
41/* Frees any data structures allocated for compression. */ 41/* Frees any data structures allocated for compression. */
42 42
43void 43void
44buffer_compress_uninit() 44buffer_compress_uninit()
45{ 45{
46 debug("compress outgoing: raw data %lu, compressed %lu, factor %.2f", 46 debug("compress outgoing: raw data %lu, compressed %lu, factor %.2f",
@@ -64,7 +64,7 @@ buffer_compress_uninit()
64 * receiver. This appends the compressed data to the output buffer. 64 * receiver. This appends the compressed data to the output buffer.
65 */ 65 */
66 66
67void 67void
68buffer_compress(Buffer * input_buffer, Buffer * output_buffer) 68buffer_compress(Buffer * input_buffer, Buffer * output_buffer)
69{ 69{
70 char buf[4096]; 70 char buf[4096];
@@ -108,7 +108,7 @@ buffer_compress(Buffer * input_buffer, Buffer * output_buffer)
108 * with that. This appends the uncompressed data to the output buffer. 108 * with that. This appends the uncompressed data to the output buffer.
109 */ 109 */
110 110
111void 111void
112buffer_uncompress(Buffer * input_buffer, Buffer * output_buffer) 112buffer_uncompress(Buffer * input_buffer, Buffer * output_buffer)
113{ 113{
114 char buf[4096]; 114 char buf[4096];