Commit e4fc069d authored by Meilof Veeningen's avatar Meilof Veeningen Committed by Niels Möller
Browse files

Include RSA declarations only when public key

algorithms are enabled. Problem reported by Meilof Veeningen
<meilof@gmail.com>.

Rev: src/nettle/ChangeLog:1.318
Rev: src/nettle/examples/io.h:1.5
parent 8abf77a1
2005-01-03 Niels Mller <niels@s3.kth.se>
* examples/io.h: Include RSA declarations only when public key
algorithms are enabled. Problem reported by Meilof Veeningen
<meilof@gmail.com>.
2004-12-07 Niels Mller <nisse@lysator.liu.se> 2004-12-07 Niels Mller <nisse@lysator.liu.se>
* Makefile.in: Install directories, using $(INSTALL) -d, only if * Makefile.in: Install directories, using $(INSTALL) -d, only if
......
...@@ -27,7 +27,9 @@ ...@@ -27,7 +27,9 @@
#define NETTLE_EXAMPLES_IO_H_INCLUDED #define NETTLE_EXAMPLES_IO_H_INCLUDED
#include "nettle-meta.h" #include "nettle-meta.h"
#include "rsa.h" #if WITH_PUBLIC_KEY
# include "rsa.h"
#endif
#include "yarrow.h" #include "yarrow.h"
#include <stdio.h> #include <stdio.h>
...@@ -61,6 +63,7 @@ simple_random(struct yarrow256_ctx *ctx, const char *name); ...@@ -61,6 +63,7 @@ simple_random(struct yarrow256_ctx *ctx, const char *name);
int int
hash_file(const struct nettle_hash *hash, void *ctx, FILE *f); hash_file(const struct nettle_hash *hash, void *ctx, FILE *f);
#if WITH_PUBLIC_KEY
struct rsa_public_key; struct rsa_public_key;
struct rsa_private_key; struct rsa_private_key;
...@@ -68,5 +71,6 @@ int ...@@ -68,5 +71,6 @@ int
read_rsa_key(const char *name, read_rsa_key(const char *name,
struct rsa_public_key *pub, struct rsa_public_key *pub,
struct rsa_private_key *priv); struct rsa_private_key *priv);
#endif /* WITH_PUBLIC_KEY */
#endif /* NETTLE_EXAMPLES_IO_H_INCLUDED */ #endif /* NETTLE_EXAMPLES_IO_H_INCLUDED */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment