From 6859e4f4ecf6aae135dc54ea2ec74f9405a78360 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 23 Sep 2011 22:54:33 +0200 Subject: build: Fix zlib support. --- tests/client/torture_algorithms.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/client/torture_algorithms.c') diff --git a/tests/client/torture_algorithms.c b/tests/client/torture_algorithms.c index 209d5556..3f090a29 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); -- cgit v1.2.3