]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Remove ifdef-conditions based on HAVE_OPENSSL
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Thu, 11 Aug 2022 14:35:46 +0000 (16:35 +0200)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Thu, 11 Aug 2022 14:35:46 +0000 (16:35 +0200)
This macro was removed in 6b0b7141a8a50ffc99ad51b4f27c75f876e58616 but
the test-specific ifdefs weren't.

src/lib-http/test-http-client.c
src/lib-http/test-http-payload.c

index 10ba8a7b82aca8e3f43486617f67ebd2cc425267..0c24ae16fc890f005c4ace84ff8000480bb19954 100644 (file)
@@ -9,9 +9,7 @@
 #include "http-client.h"
 #include "dns-lookup.h"
 #include "iostream-ssl.h"
-#ifdef HAVE_OPENSSL
 #include "iostream-openssl.h"
-#endif
 
 #include <fcntl.h>
 #include <unistd.h>
@@ -360,9 +358,7 @@ int main(int argc, char *argv[])
        const char *error;
 
        lib_init();
-#ifdef HAVE_OPENSSL
        ssl_iostream_openssl_init();
-#endif
        ioloop = io_loop_create();
        io_loop_set_running(ioloop);
 
@@ -465,8 +461,6 @@ int main(int argc, char *argv[])
 
        io_loop_destroy(&ioloop);
        ssl_iostream_context_cache_free();
-#ifdef HAVE_OPENSSL
        ssl_iostream_openssl_deinit();
-#endif
        lib_deinit();
 }
index 62f0b9ec81a471478abc985b2bf475dee6e58429..5427869574f0de73f6604e59458a7d3c1635b8fc 100644 (file)
@@ -12,9 +12,7 @@
 #include "iostream-temp.h"
 #include "iostream-ssl.h"
 #include "iostream-ssl-test.h"
-#ifdef HAVE_OPENSSL
 #include "iostream-openssl.h"
-#endif
 #include "connection.h"
 #include "test-common.h"
 #include "test-subprocess.h"
@@ -2310,7 +2308,6 @@ static void test_echo_client_shared(void)
        test_end();
 }
 
-#ifdef HAVE_OPENSSL
 static void test_echo_ssl(void)
 {
        test_begin("http payload echo (ssl)");
@@ -2340,7 +2337,6 @@ static void test_echo_ssl(void)
        test_run_parallel(test_client_echo);
        test_end();
 }
-#endif
 
 static void test_echo_client_blocking(void)
 {
@@ -2390,9 +2386,7 @@ static void (*const test_functions[])(void) = {
        test_download_client_partial,
        test_download_client_nested_ioloop,
        test_echo_client_shared,
-#ifdef HAVE_OPENSSL
        test_echo_ssl,
-#endif
        test_echo_client_blocking,
        NULL
 };
@@ -2403,17 +2397,13 @@ static void (*const test_functions[])(void) = {
 
 static void main_init(void)
 {
-#ifdef HAVE_OPENSSL
        ssl_iostream_openssl_init();
-#endif
 }
 
 static void main_deinit(void)
 {
        ssl_iostream_context_cache_free();
-#ifdef HAVE_OPENSSL
        ssl_iostream_openssl_deinit();
-#endif
 }
 
 int main(int argc, char *argv[])