diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-09-23 22:54:33 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-23 22:57:21 +0200 |
commit | 6859e4f4ecf6aae135dc54ea2ec74f9405a78360 (patch) | |
tree | be9901e69feb47d304ce3697bc110dd55c8a032f /src/packet1.c | |
parent | 43fc7553f898c03bf95ac9fc0a2294e319ededa4 (diff) | |
download | libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.tar.gz libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.tar.xz libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.zip |
build: Fix zlib support.
Diffstat (limited to 'src/packet1.c')
-rw-r--r-- | src/packet1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/packet1.c b/src/packet1.c index a0a36f8e..894aedd7 100644 --- a/src/packet1.c +++ b/src/packet1.c @@ -214,7 +214,7 @@ int ssh_packet_socket_callback1(const void *data, size_t receivedlen, void *user ssh_log(session, SSH_LOG_PACKET, "The packet is valid"); /* TODO FIXME -#if defined(HAVE_LIBZ) && defined(WITH_LIBZ) +#ifdef WITH_ZLIB if(session->current_crypto && session->current_crypto->do_compress_in){ decompress_buffer(session,session->in_buffer); } @@ -264,7 +264,7 @@ int packet_send1(ssh_session session) { ssh_log(session,SSH_LOG_PACKET,"Sending a %d bytes long packet",currentlen); /* TODO FIXME -#if defined(HAVE_LIBZ) && defined(WITH_LIBZ) +#ifdef WITH_ZLIB if (session->current_crypto && session->current_crypto->do_compress_out) { if (compress_buffer(session, session->out_buffer) < 0) { goto error; |