summaryrefslogtreecommitdiffstats
path: root/src/packet.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/packet.c
parent43fc7553f898c03bf95ac9fc0a2294e319ededa4 (diff)
downloadlibssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.tar.gz
libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.tar.xz
libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.zip
build: Fix zlib support.
Diffstat (limited to 'src/packet.c')
-rw-r--r--src/packet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/packet.c b/src/packet.c
index 33b284a..fe79874 100644
--- a/src/packet.c
+++ b/src/packet.c
@@ -255,7 +255,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
ssh_log(session, SSH_LOG_PACKET,
"After padding, %d bytes left in buffer",
buffer_get_rest_len(session->in_buffer));
-#ifdef WITH_LIBZ
+#ifdef WITH_ZLIB
if (session->current_crypto
&& session->current_crypto->do_compress_in
&& buffer_get_rest_len(session->in_buffer)) {
@@ -264,7 +264,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
goto error;
}
}
-#endif
+#endif /* WITH_ZLIB */
session->recv_seq++;
/* We don't want to rewrite a new packet while still executing the packet callbacks */
session->packet_state = PACKET_STATE_PROCESSING;
@@ -460,7 +460,7 @@ static int packet_send2(ssh_session session) {
ssh_log(session, SSH_LOG_PACKET,
"Writing on the wire a packet having %u bytes before", currentlen);
-#ifdef WITH_LIBZ
+#ifdef WITH_ZLIB
if (session->current_crypto
&& session->current_crypto->do_compress_out
&& buffer_get_rest_len(session->out_buffer)) {
@@ -470,7 +470,7 @@ static int packet_send2(ssh_session session) {
}
currentlen = buffer_get_rest_len(session->out_buffer);
}
-#endif
+#endif /* WITH_ZLIB */
padding = (blocksize - ((currentlen +5) % blocksize));
if(padding < 4) {
padding += blocksize;