From 2776beb91a7f9e52cb55d6b1c572a7c38f69d6e2 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 7 Jun 2005 19:56:52 +0000 Subject: [PATCH] Mask new fips_*vs test programs in non-fips builds. --- fips/dsa/fips_dssvs.c | 13 +++++++++++++ fips/rand/fips_rngvs.c | 11 +++++++++++ 2 files changed, 24 insertions(+) diff --git a/fips/dsa/fips_dssvs.c b/fips/dsa/fips_dssvs.c index 5c75166981..cbf0a81981 100644 --- a/fips/dsa/fips_dssvs.c +++ b/fips/dsa/fips_dssvs.c @@ -1,3 +1,15 @@ +#include + +#ifndef OPENSSL_FIPS +#include + +int main() +{ + printf("No FIPS DSA support\n"); + return(0); +} +#else + #include #include #include @@ -304,3 +316,4 @@ int main(int argc,char **argv) return 0; } +#endif diff --git a/fips/rand/fips_rngvs.c b/fips/rand/fips_rngvs.c index e616664552..2e7053368a 100644 --- a/fips/rand/fips_rngvs.c +++ b/fips/rand/fips_rngvs.c @@ -6,6 +6,16 @@ * NIST document "The Random Number Generator Validation System (RNGVS)", May 25, 2004. * */ +#include + +#ifndef OPENSSL_FIPS +#include +int main() +{ + printf("No FIPS RNG support\n"); + exit(0); +} +#else #include #include @@ -220,3 +230,4 @@ int main(int argc,char **argv) return 0; } +#endif -- 2.25.1