Browse Source

test_wolfSSL_check_domain: doesn't work with WOLFSSL_HOSTNAME_VERIFY_ALT_NAME_ONLY

Juliusz Sosinowicz 1 month ago
parent
commit
12b9367598
1 changed files with 10 additions and 3 deletions
  1. 10 3
      tests/api.c

+ 10 - 3
tests/api.c

@@ -41936,7 +41936,8 @@ static int test_wolfSSL_X509_VERIFY_PARAM(void)
     return EXPECT_RESULT();
 }
 
-#if defined(OPENSSL_EXTRA) && defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES)
+#if defined(OPENSSL_EXTRA) && defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES) && \
+    !defined(WOLFSSL_HOSTNAME_VERIFY_ALT_NAME_ONLY)
 
 static int test_wolfSSL_check_domain_verify_count = 0;
 
@@ -42001,6 +42002,14 @@ static int test_wolfSSL_check_domain(void)
     return EXPECT_RESULT();
 }
 
+#else
+
+static int test_wolfSSL_check_domain(void)
+{
+    EXPECT_DECLS;
+    return EXPECT_RESULT();
+}
+
 #endif /* OPENSSL_EXTRA && HAVE_SSL_MEMIO_TESTS_DEPENDENCIES */
 
 static int test_wolfSSL_X509_get_X509_PUBKEY(void)
@@ -72953,9 +72962,7 @@ TEST_CASE testCases[] = {
     TEST_DECL(test_wolfSSL_BIO_get_len),
 #endif
 
-#if defined(OPENSSL_EXTRA) && defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES)
     TEST_DECL(test_wolfSSL_check_domain),
-#endif
     TEST_DECL(test_wolfSSL_cert_cb),
     TEST_DECL(test_wolfSSL_cert_cb_dyn_ciphers),
     TEST_DECL(test_wolfSSL_ciphersuite_auth),