aboutsummaryrefslogtreecommitdiff
path: root/tests/client
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 /tests/client
parent43fc7553f898c03bf95ac9fc0a2294e319ededa4 (diff)
downloadlibssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.tar.gz
libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.tar.xz
libssh-6859e4f4ecf6aae135dc54ea2ec74f9405a78360.zip
build: Fix zlib support.
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/torture_algorithms.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/client/torture_algorithms.c b/tests/client/torture_algorithms.c
index 209d555..3f090a2 100644
--- a/tests/client/torture_algorithms.c
+++ b/tests/client/torture_algorithms.c
@@ -101,21 +101,21 @@ static void torture_algorithms_zlib(void **state) {
assert_true(rc == SSH_OK);
rc = ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "zlib");
-#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
+#ifdef WITH_ZLIB
assert_true(rc == SSH_OK);
#else
assert_true(rc == SSH_ERROR);
#endif
rc = ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "zlib");
-#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
+#ifdef WITH_ZLIB
assert_true(rc == SSH_OK);
#else
assert_true(rc == SSH_ERROR);
#endif
rc = ssh_connect(session);
-#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
+#ifdef WITH_ZLIB
if (ssh_get_openssh_version(session)) {
assert_false(rc == SSH_OK);
ssh_disconnect(session);
@@ -141,21 +141,21 @@ static void torture_algorithms_zlib_openssh(void **state) {
assert_true(rc == SSH_OK);
rc = ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "zlib@openssh.com");
-#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
+#ifdef WITH_ZLIB
assert_true(rc == SSH_OK);
#else
assert_true(rc == SSH_ERROR);
#endif
rc = ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "zlib@openssh.com");
-#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
+#ifdef WITH_ZLIB
assert_true(rc == SSH_OK);
#else
assert_true(rc == SSH_ERROR);
#endif
rc = ssh_connect(session);
-#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
+#ifdef WITH_ZLIB
if (ssh_get_openssh_version(session)) {
assert_true(rc==SSH_OK);
rc = ssh_userauth_none(session, NULL);