summaryrefslogtreecommitdiffstats
path: root/test/dtlstest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dtlstest.c')
-rw-r--r--test/dtlstest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dtlstest.c b/test/dtlstest.c
index 35c616cabd..e32b03b454 100644
--- a/test/dtlstest.c
+++ b/test/dtlstest.c
@@ -425,6 +425,12 @@ static int test_just_finished(void)
&sctx, NULL, cert, privkey)))
return 0;
+#ifdef OPENSSL_NO_DTLS1_2
+ /* DTLSv1 is not allowed at the default security level */
+ if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")))
+ goto end;
+#endif
+
serverssl = SSL_new(sctx);
rbio = BIO_new(BIO_s_mem());
wbio = BIO_new(BIO_s_mem());