]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-payload - Include test_echo_ssl only if ssl is supported
authorSiavash Tavakoli <siavash.tavakoli@open-xchange.com>
Fri, 26 Jul 2019 08:54:47 +0000 (11:54 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 10 Sep 2019 07:02:03 +0000 (10:02 +0300)
src/lib-http/test-http-payload.c

index 187b9b89ff7621b065cbd00f63237e42e5c11586..80115e557f475e68b691c085cacde855361a4c13 100644 (file)
@@ -1864,6 +1864,7 @@ static void test_echo_client_shared(void)
        test_end();
 }
 
+#ifdef HAVE_OPENSSL
 static void test_echo_ssl(void)
 {
        test_begin("http payload echo (ssl)");
@@ -1892,6 +1893,7 @@ static void test_echo_ssl(void)
        test_run_parallel(test_client_echo);
        test_end();
 }
+#endif
 
 static void (*const test_functions[])(void) = {
        test_download_server_nonblocking,
@@ -1905,7 +1907,9 @@ 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
        NULL
 };