summaryrefslogtreecommitdiffstats
path: root/test/bio_enc_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-08-25 11:02:47 +0100
committerMatt Caswell <matt@openssl.org>2017-08-25 11:34:08 +0100
commit0139ce7c92f5570ce1513cfe776df94460842ce0 (patch)
treecd893dee0f17e17b53285066a5b6ba7a52cd3d0e /test/bio_enc_test.c
parent1b3011abb36ff743c05afce1c9f2450d83d09d59 (diff)
Fix no-chacha and no-poly1305
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4251)
Diffstat (limited to 'test/bio_enc_test.c')
-rw-r--r--test/bio_enc_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bio_enc_test.c b/test/bio_enc_test.c
index 8474dc516e..282e8dac61 100644
--- a/test/bio_enc_test.c
+++ b/test/bio_enc_test.c
@@ -202,15 +202,19 @@ static int test_bio_enc_aes_256_ofb(int idx)
return do_test_bio_cipher(EVP_aes_256_ofb(), idx);
}
+# ifndef OPENSSL_NO_CHACHA
static int test_bio_enc_chacha20(int idx)
{
return do_test_bio_cipher(EVP_chacha20(), idx);
}
+# ifndef OPENSSL_NO_POLY1305
static int test_bio_enc_chacha20_poly1305(int idx)
{
return do_test_bio_cipher(EVP_chacha20_poly1305(), idx);
}
+# endif
+# endif
int setup_tests(void)
{