aboutsummaryrefslogtreecommitdiff
path: root/src/packet1.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-09-23 22:54:33 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-09-23 22:57:21 +0200
commit6859e4f4ecf6aae135dc54ea2ec74f9405a78360 (patch)
treebe9901e69feb47d304ce3697bc110dd55c8a032f /src/packet1.c
parent43fc7553f898c03bf95ac9fc0a2294e319ededa4 (diff)
downloadlibssh-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.c4
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;