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/wrapper.c | |
parent | 43fc7553f898c03bf95ac9fc0a2294e319ededa4 (diff) | |
download | libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.tar.gz libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.tar.xz libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.zip |
build: Fix zlib support.
Diffstat (limited to 'src/wrapper.c')
-rw-r--r-- | src/wrapper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wrapper.c b/src/wrapper.c index 3a917200..edce03d4 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -38,7 +38,7 @@ #include <stdio.h> #include <string.h> -#ifdef WITH_LIBZ +#ifdef WITH_ZLIB #include <zlib.h> #endif @@ -122,7 +122,7 @@ void crypto_free(struct ssh_crypto_struct *crypto){ SAFE_FREE(crypto->session_id); } -#ifdef WITH_LIBZ +#ifdef WITH_ZLIB if (crypto->compress_out_ctx && (deflateEnd(crypto->compress_out_ctx) != 0)) { inflateEnd(crypto->compress_out_ctx); @@ -131,7 +131,7 @@ void crypto_free(struct ssh_crypto_struct *crypto){ (deflateEnd(crypto->compress_in_ctx) != 0)) { inflateEnd(crypto->compress_in_ctx); } -#endif +#endif /* WITH_ZLIB */ if(crypto->encryptIV) SAFE_FREE(crypto->encryptIV); if(crypto->decryptIV) |