str(n)icmp defs).
Disable a few tests if not FIPS.
#include <openssl/evp.h>
#include <openssl/fips.h>
#include <openssl/err.h>
+#include "../e_os.h"
#define AES_BLOCK_SIZE 16
#include <openssl/evp.h>
#include <openssl/fips.h>
#include <openssl/err.h>
+#include "../e_os.h"
/*#define AES_BLOCK_SIZE 16*/
#include <openssl/fips.h>
#include <openssl/fips_rand.h>
-#ifdef OPENSSL_NO_DSA
+#if defined(OPENSSL_NO_DSA) && !defined(OPENSSL_FIPS)
int main(int argc, char *argv[])
{
- printf("No DSA support\n");
+ printf("No FIPS DSA support\n");
return(0);
}
#else
#include "../e_os.h"
+#ifndef OPENSSL_FIPS
+int main(int argc, char *argv[])
+{
+ printf("No FIPS RAND support\n");
+ return(0);
+}
+
+#else
+
/* some FIPS 140-1 random number test */
/* some simple tests */
EXIT(err);
return(err);
}
+
+#endif