summaryrefslogtreecommitdiffstats
path: root/test/sslapitest.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-09-28 09:35:05 +0100
committerMatt Caswell <matt@openssl.org>2016-09-29 09:54:38 +0100
commitdd63da7032c655afcc80b82c38f2805b8f9476cf (patch)
treed7c3175e89f309fda7d2201c8b238ecc3f7b16d5 /test/sslapitest.c
parenta1b791225f2913ace014071bfb9099790ef468e5 (diff)
Fix no-dtls
The new large message test in sslapitest needs OPENSSL_NO_DTLS guards Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit 55386bef807c7edd0f1db036c0ed464b28a61d68)
Diffstat (limited to 'test/sslapitest.c')
-rw-r--r--test/sslapitest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c
index b08eb8c78f..4d22d8ef00 100644
--- a/test/sslapitest.c
+++ b/test/sslapitest.c
@@ -108,11 +108,13 @@ static int test_large_message_tls(void)
return execute_test_large_message(TLS_server_method(), TLS_client_method());
}
+#ifndef OPENSSL_NO_DTLS
static int test_large_message_dtls(void)
{
return execute_test_large_message(DTLS_server_method(),
DTLS_client_method());
}
+#endif
static int ocsp_server_cb(SSL *s, void *arg)
{
@@ -861,7 +863,9 @@ int main(int argc, char *argv[])
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
ADD_TEST(test_large_message_tls);
+#ifndef OPENSSL_NO_DTLS
ADD_TEST(test_large_message_dtls);
+#endif
ADD_TEST(test_tlsext_status_type);
ADD_TEST(test_session_with_only_int_cache);
ADD_TEST(test_session_with_only_ext_cache);