From: Meilof Veeningen Date: Mon, 3 Jan 2005 19:30:44 +0000 (+0100) Subject: Include RSA declarations only when public key X-Git-Tag: before_experimental_branch_20050201 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4fc069da59a8cd7bd604d95b208c20f6c03f20d;p=thirdparty%2Fnettle.git Include RSA declarations only when public key algorithms are enabled. Problem reported by Meilof Veeningen . Rev: src/nettle/ChangeLog:1.318 Rev: src/nettle/examples/io.h:1.5 --- diff --git a/ChangeLog b/ChangeLog index 056d5d57..9ebe265a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-03 Niels Möller + + * examples/io.h: Include RSA declarations only when public key + algorithms are enabled. Problem reported by Meilof Veeningen + . + 2004-12-07 Niels Möller * Makefile.in: Install directories, using $(INSTALL) -d, only if diff --git a/examples/io.h b/examples/io.h index a5211951..93c6856c 100644 --- a/examples/io.h +++ b/examples/io.h @@ -27,7 +27,9 @@ #define NETTLE_EXAMPLES_IO_H_INCLUDED #include "nettle-meta.h" -#include "rsa.h" +#if WITH_PUBLIC_KEY +# include "rsa.h" +#endif #include "yarrow.h" #include @@ -61,6 +63,7 @@ simple_random(struct yarrow256_ctx *ctx, const char *name); int hash_file(const struct nettle_hash *hash, void *ctx, FILE *f); +#if WITH_PUBLIC_KEY struct rsa_public_key; struct rsa_private_key; @@ -68,5 +71,6 @@ int read_rsa_key(const char *name, struct rsa_public_key *pub, struct rsa_private_key *priv); +#endif /* WITH_PUBLIC_KEY */ #endif /* NETTLE_EXAMPLES_IO_H_INCLUDED */