From: Niels Möller Date: Sat, 7 Feb 2004 17:16:15 +0000 (+0100) Subject: * testsuite/sexp-format-test.c: Include bignum.h only if HAVE_LIBGMP. X-Git-Tag: nettle_1.9_release_20040207~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1b29b87cb53da76a53b8d07573ee24358813809;p=thirdparty%2Fnettle.git * testsuite/sexp-format-test.c: Include bignum.h only if HAVE_LIBGMP. * testsuite/rsa-encrypt-test.c: Include rsa.h only if WITH_PUBLIC_KEY. * testsuite/pkcs1-test.c: Include pkcs1.h only if WITH_PUBLIC_KEY. Rev: src/nettle/testsuite/pkcs1-test.c:1.2 Rev: src/nettle/testsuite/rsa-encrypt-test.c:1.4 Rev: src/nettle/testsuite/sexp-format-test.c:1.8 --- diff --git a/testsuite/pkcs1-test.c b/testsuite/pkcs1-test.c index 90e99b73..e52fc533 100644 --- a/testsuite/pkcs1-test.c +++ b/testsuite/pkcs1-test.c @@ -1,6 +1,8 @@ #include "testutils.h" -#include "pkcs1.h" +#if WITH_PUBLIC_KEY +# include "pkcs1.h" +#endif int test_main(void) diff --git a/testsuite/rsa-encrypt-test.c b/testsuite/rsa-encrypt-test.c index e733f79d..08cff25e 100644 --- a/testsuite/rsa-encrypt-test.c +++ b/testsuite/rsa-encrypt-test.c @@ -1,6 +1,9 @@ #include "testutils.h" -#include "rsa.h" +#if WITH_PUBLIC_KEY +# include "rsa.h" +#endif + #include "knuth-lfib.h" int diff --git a/testsuite/sexp-format-test.c b/testsuite/sexp-format-test.c index 2d8457b1..33c585f4 100644 --- a/testsuite/sexp-format-test.c +++ b/testsuite/sexp-format-test.c @@ -2,7 +2,10 @@ #include "sexp.h" #include "buffer.h" -#include "bignum.h" + +#if HAVE_LIBGMP +# include "bignum.h" +#endif int test_main(void)