From a1b29b87cb53da76a53b8d07573ee24358813809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Sat, 7 Feb 2004 18:16:15 +0100 Subject: [PATCH] * 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 --- testsuite/pkcs1-test.c | 4 +++- testsuite/rsa-encrypt-test.c | 5 ++++- testsuite/sexp-format-test.c | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) 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) -- GitLab