Commit 0d8cdc05 authored by Niels Möller's avatar Niels Möller
Browse files

* connection.c (connection_init_io): Compression support.

* client.c (do_line): Compression support.

Rev: src/connection.c:1.20
Rev: src/connection.h:1.21
parent d4293385
......@@ -28,6 +28,7 @@
#include "format.h"
#include "disconnect.h"
#include "keyexchange.h"
#include "compress.h"
#include "packet_ignore.h"
#include "pad.h"
#include "ssh.h"
......@@ -233,11 +234,15 @@ void connection_init_io(struct ssh_connection *connection,
{
/* Initialize i/o hooks */
connection->raw = raw;
connection->write = make_packet_pad(make_packet_encrypt(raw,
connection),
connection,
r);
connection->write = make_packet_deflate(
make_packet_pad(
make_packet_encrypt(raw, connection),
connection,
r),
connection
);
connection->send_crypto = connection->rec_crypto = NULL;
connection->send_mac = connection->rec_mac = NULL;
connection->send_compress = connection->rec_compress = NULL;
}
......@@ -25,6 +25,7 @@
#define LSH_CONNECTION_H_INCLUDED
#include "abstract_io.h"
#include "abstract_compress.h"
#include "resource.h"
#include "randomness.h"
......@@ -70,6 +71,7 @@ struct ssh_connection;
(rec_max_packet simple UINT32)
(rec_mac object mac_instance)
(rec_crypto object crypto_instance)
(rec_compress object compress_instance)
; Sending
(raw object abstract_write) ; Socket connected to the other end
......@@ -78,6 +80,7 @@ struct ssh_connection;
(send_mac object mac_instance)
(send_crypto object crypto_instance)
(send_compress object compress_instance)
; Key exchange
(kex_state simple int)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment