From 6febc5e4b5146e05d1c9fb18bc695d8e4cac11a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Mon, 14 May 2007 16:55:15 +0200 Subject: [PATCH] * 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 --- testsuite/testutils.c | 4 ++-- testsuite/testutils.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 } -- GitLab