Move the FIPS check so make depend doesn't give different results
authorRichard Levitte <levitte@openssl.org>
Tue, 9 Sep 2003 16:38:16 +0000 (16:38 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 9 Sep 2003 16:38:16 +0000 (16:38 +0000)
depending on FIPS mode.

fips/dsa/fips_dsa_gen.c

index 0cbfd9c0c9169ca9ae27c17183fd27ca76c3131d..34f389790fe3654ff5b09b1fb8b2995ab7699009 100644 (file)
 #define HASH    EVP_sha1()
 #endif 
 
-#ifndef OPENSSL_NO_SHA
-
-#ifdef FIPS
-
 #include <stdio.h>
 #include <string.h>
 #include <time.h>
 /*#include "cryptlib.h"*/
 #include <openssl/evp.h>
 #include <openssl/bn.h>
+#ifndef OPENSSL_NO_SHA
 #include <openssl/dsa.h>
+#endif
+#ifndef OPENSSL_NO_RAND
 #include <openssl/rand.h>
+#endif
+#ifndef OPENSSL_NO_SHA
 #include <openssl/sha.h>
 
+#ifdef FIPS
+
 DSA *DSA_generate_parameters(int bits,
                unsigned char *seed_in, int seed_len,
                int *counter_ret, unsigned long *h_ret,