From: Niels Möller Date: Mon, 14 May 2007 14:55:15 +0000 (+0200) Subject: * testsuite/testutils.h: Use WITH_HOGWEED, not WITH_PUBLIC_KEY. X-Git-Tag: nettle_2.0_release_20090608~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6febc5e4b5146e05d1c9fb18bc695d8e4cac11a7;p=thirdparty%2Fnettle.git * testsuite/testutils.h: Use WITH_HOGWEED, not WITH_PUBLIC_KEY. * testsuite/testutils.c: Likewise. Rev: nettle/testsuite/testutils.c:1.2 Rev: nettle/testsuite/testutils.h:1.2 --- diff --git a/testsuite/testutils.c b/testsuite/testutils.c index dbd47554..68d27fc1 100644 --- a/testsuite/testutils.c +++ b/testsuite/testutils.c @@ -432,7 +432,7 @@ mpz_togglebit (mpz_t x, unsigned long int bit) } #endif /* HAVE_LIBGMP */ -#if WITH_PUBLIC_KEY +#if WITH_HOGWEED #define SIGN(key, hash, msg, signature) do { \ hash##_update(&hash, LDATA(msg)); \ rsa_##hash##_sign(key, &hash, signature); \ @@ -825,5 +825,5 @@ test_dsa_key(struct dsa_public_key *pub, ASSERT(0 == mpz_cmp(t, pub->y)); }; -#endif /* WITH_PUBLIC_KEY */ +#endif /* WITH_HOGWEED */ diff --git a/testsuite/testutils.h b/testsuite/testutils.h index 426239b6..352e1e84 100644 --- a/testsuite/testutils.h +++ b/testsuite/testutils.h @@ -15,7 +15,7 @@ # include "bignum.h" #endif -#if WITH_PUBLIC_KEY +#if WITH_HOGWEED # include "rsa.h" # include "dsa.h" #endif @@ -102,7 +102,7 @@ test_armor(const struct nettle_armor *armor, const uint8_t *data, const uint8_t *ascii); -#if WITH_PUBLIC_KEY +#if WITH_HOGWEED void test_rsa_set_key_1(struct rsa_public_key *pub, struct rsa_private_key *key); @@ -134,7 +134,7 @@ void test_dsa_key(struct dsa_public_key *pub, struct dsa_private_key *key); -#endif /* WITH_PUBLIC_KEY */ +#endif /* WITH_HOGWEED */ #ifdef __cplusplus }