Make it builadable in non-FIPS mode.

The current solution is very Unix-bound, and there is probably a better way to do this.
This commit is contained in:
Richard Levitte
2003-09-08 16:43:55 +00:00
parent a86eff4296
commit 64a014a6d2
3 changed files with 41 additions and 12 deletions

View File

@@ -5,6 +5,14 @@
#include <stdlib.h>
#include <openssl/sha.h>
#include <openssl/err.h>
#ifndef FIPS
int main(int argc, char *argv[])
{
printf("No FIPS SHA1 support\n");
return(0);
}
#else
#include <openssl/fips.h>
#define MAX_TEST_BITS 103432
@@ -134,3 +142,4 @@ int main(int argc,char **argv)
}
return 0;
}
#endif