]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix no-dtls1_2 test failure
authorMatt Caswell <matt@openssl.foundation>
Tue, 7 Apr 2026 14:39:42 +0000 (15:39 +0100)
committerNikola Pajkovsky <nikolap@openssl.org>
Mon, 13 Apr 2026 08:58:52 +0000 (10:58 +0200)
Fix a failure with no-dtls1_2 introduced by the test in #30503

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Mon Apr 13 08:59:03 2026
(Merged from https://github.com/openssl/openssl/pull/30704)

test/dtls_ccs_reorder_test.c

index 5794c5e02fd3416fdd10331b7c0f0570b20972ce..45c4a4180b44134266111b021667085754287744 100644 (file)
@@ -460,6 +460,7 @@ end:
     return testresult;
 }
 
+#ifndef OPENSSL_NO_DTLS1_2
 static int test_dtls_data_after_ccs(void)
 {
     SSL_CTX *sctx = NULL, *cctx = NULL;
@@ -518,6 +519,7 @@ end:
     SSL_CTX_free(cctx);
     return testresult;
 }
+#endif
 
 int setup_tests(void)
 {
@@ -533,7 +535,9 @@ int setup_tests(void)
     ADD_ALL_TESTS(test_dtls_ccs_full_hs, OSSL_NELEM(full_hs_tests));
     ADD_ALL_TESTS(test_dtls_ccs_before_nst, OSSL_NELEM(nst_versions));
     ADD_ALL_TESTS(test_dtls_ccs_resume, OSSL_NELEM(resume_tests));
+#ifndef OPENSSL_NO_DTLS1_2
     ADD_TEST(test_dtls_data_after_ccs);
+#endif
 
     return 1;
 }