Commit b4cd09b7eb for openssl.org

commit b4cd09b7eb2d00e7327f69bf6784f421bdd3c4a5
Author: Matt Caswell <matt@openssl.foundation>
Date:   Tue Apr 7 15:39:42 2026 +0100

    Fix no-dtls1_2 test failure

    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)

diff --git a/test/dtls_ccs_reorder_test.c b/test/dtls_ccs_reorder_test.c
index 5794c5e02f..45c4a4180b 100644
--- a/test/dtls_ccs_reorder_test.c
+++ b/test/dtls_ccs_reorder_test.c
@@ -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;
 }