From 308be3a9e27b4f6fe6e102f2d6bebd18e3e919ad Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 26 Sep 2011 17:53:13 +0200 Subject: [PATCH] Don't export tests from library, reported in bug from Tom Payeire --- lib/hcrypto/validate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hcrypto/validate.c b/lib/hcrypto/validate.c index 48b9bfc6e..6f61cc53b 100644 --- a/lib/hcrypto/validate.c +++ b/lib/hcrypto/validate.c @@ -56,7 +56,7 @@ struct tests { void *outiv; }; -struct tests tests[] = { +static struct tests hc_tests[] = { { EVP_aes_256_cbc, "aes-256", @@ -300,8 +300,8 @@ hcrypto_validate(void) return; validated++; - for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) - test_cipher(&tests[i]); + for (i = 0; i < sizeof(hc_tests) / sizeof(hc_tests[0]); i++) + test_cipher(&hc_tests[i]); check_hmac(); }