Mask new fips_*vs test programs in non-fips builds.

This commit is contained in:
Andy Polyakov 2005-06-07 19:56:52 +00:00
parent dca20343e0
commit 2776beb91a
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,15 @@
#include <openssl/opensslconf.h>
#ifndef OPENSSL_FIPS
#include <stdio.h>
int main()
{
printf("No FIPS DSA support\n");
return(0);
}
#else
#include <openssl/bn.h>
#include <openssl/dsa.h>
#include <openssl/fips.h>
@ -304,3 +316,4 @@ int main(int argc,char **argv)
return 0;
}
#endif

View File

@ -6,6 +6,16 @@
* NIST document "The Random Number Generator Validation System (RNGVS)", May 25, 2004.
*
*/
#include <openssl/opensslconf.h>
#ifndef OPENSSL_FIPS
#include <stdio.h>
int main()
{
printf("No FIPS RNG support\n");
exit(0);
}
#else
#include <openssl/bn.h>
#include <openssl/dsa.h>
@ -220,3 +230,4 @@ int main(int argc,char **argv)
return 0;
}
#endif