Skip to content

Commit 12b9367

Browse files
committed
test_wolfSSL_check_domain: doesn't work with WOLFSSL_HOSTNAME_VERIFY_ALT_NAME_ONLY
1 parent d9a236b commit 12b9367

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

tests/api.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41936,7 +41936,8 @@ static int test_wolfSSL_X509_VERIFY_PARAM(void)
4193641936
return EXPECT_RESULT();
4193741937
}
4193841938

41939-
#if defined(OPENSSL_EXTRA) && defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES)
41939+
#if defined(OPENSSL_EXTRA) && defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES) && \
41940+
!defined(WOLFSSL_HOSTNAME_VERIFY_ALT_NAME_ONLY)
4194041941

4194141942
static int test_wolfSSL_check_domain_verify_count = 0;
4194241943

@@ -42001,6 +42002,14 @@ static int test_wolfSSL_check_domain(void)
4200142002
return EXPECT_RESULT();
4200242003
}
4200342004

42005+
#else
42006+
42007+
static int test_wolfSSL_check_domain(void)
42008+
{
42009+
EXPECT_DECLS;
42010+
return EXPECT_RESULT();
42011+
}
42012+
4200442013
#endif /* OPENSSL_EXTRA && HAVE_SSL_MEMIO_TESTS_DEPENDENCIES */
4200542014

4200642015
static int test_wolfSSL_X509_get_X509_PUBKEY(void)
@@ -72953,9 +72962,7 @@ TEST_CASE testCases[] = {
7295372962
TEST_DECL(test_wolfSSL_BIO_get_len),
7295472963
#endif
7295572964

72956-
#if defined(OPENSSL_EXTRA) && defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES)
7295772965
TEST_DECL(test_wolfSSL_check_domain),
72958-
#endif
7295972966
TEST_DECL(test_wolfSSL_cert_cb),
7296072967
TEST_DECL(test_wolfSSL_cert_cb_dyn_ciphers),
7296172968
TEST_DECL(test_wolfSSL_ciphersuite_auth),

0 commit comments

Comments
 (0)