From: Andy Polyakov Date: Tue, 7 Jun 2005 19:56:52 +0000 (+0000) Subject: Mask new fips_*vs test programs in non-fips builds. X-Git-Tag: FIPS_TEST_10~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2776beb91a7f9e52cb55d6b1c572a7c38f69d6e2;p=oweals%2Fopenssl.git Mask new fips_*vs test programs in non-fips builds. --- 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