summaryrefslogtreecommitdiffstats
path: root/test/bio_dgram_test.c
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2022-10-10 09:01:42 +1100
committerMatt Caswell <matt@openssl.org>2022-10-10 14:16:08 +0100
commit681c461910b1b72af263ec735bac1310b2fadcd0 (patch)
tree0543e57f057246b3152a449b657c743ddbe4bb99 /test/bio_dgram_test.c
parent6e2f15ca93f0a7d0a91dfdba5e7010a4cf14b052 (diff)
test: condition out code that relies on CHACHA.
Run checker does a no-chacha build and tests fail because it can't be fetched. Fixes #19363 Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19366)
Diffstat (limited to 'test/bio_dgram_test.c')
-rw-r--r--test/bio_dgram_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/bio_dgram_test.c b/test/bio_dgram_test.c
index 1d7ce2773f..f802d11f35 100644
--- a/test/bio_dgram_test.c
+++ b/test/bio_dgram_test.c
@@ -451,6 +451,7 @@ static int test_bio_dgram(int idx)
bio_dgram_cases[idx].local);
}
+# if !defined(OPENSSL_NO_CHACHA)
static int random_data(const uint32_t *key, uint8_t *data, size_t data_len, size_t offset)
{
int ret = 0, outl;
@@ -746,7 +747,7 @@ err:
BIO_ADDR_free(addr4);
return testresult;
}
-
+# endif /* !defined(OPENSSL_NO_CHACHA) */
#endif /* !defined(OPENSSL_NO_DGRAM) && !defined(OPENSSL_NO_SOCK) */
int setup_tests(void)
@@ -758,7 +759,9 @@ int setup_tests(void)
#if !defined(OPENSSL_NO_DGRAM) && !defined(OPENSSL_NO_SOCK)
ADD_ALL_TESTS(test_bio_dgram, OSSL_NELEM(bio_dgram_cases));
+# if !defined(OPENSSL_NO_CHACHA)
ADD_TEST(test_bio_dgram_pair);
+# endif
#endif
return 1;