unit-tests: MGF1 tests depend on an XOF implementation not just a hash function
authorTobias Brunner <tobias@strongswan.org>
Wed, 21 Sep 2016 16:36:28 +0000 (18:36 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Sep 2016 16:36:28 +0000 (18:36 +0200)
If the mgf1 plugin was not enabled (e.g. with the default configure
options) the tests failed.

src/libstrongswan/tests/tests.h

index 824c880..fabfaa8 100644 (file)
@@ -46,7 +46,7 @@ TEST_SUITE(pen_suite_create)
 TEST_SUITE(asn1_suite_create)
 TEST_SUITE(asn1_parser_suite_create)
 TEST_SUITE(test_rng_suite_create)
-TEST_SUITE_DEPEND(mgf1_sha1_suite_create, HASHER, HASH_SHA1)
-TEST_SUITE_DEPEND(mgf1_sha256_suite_create, HASHER, HASH_SHA256)
+TEST_SUITE_DEPEND(mgf1_sha1_suite_create, XOF, XOF_MGF1_SHA1)
+TEST_SUITE_DEPEND(mgf1_sha256_suite_create, XOF, XOF_MGF1_SHA256)
 TEST_SUITE_DEPEND(ntru_suite_create, DH, NTRU_112_BIT)
 TEST_SUITE_DEPEND(fetch_http_suite_create, FETCHER, "http://")