From d3446728f9829d62bf7cc08537a1a1681a8f6bfe Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 9 Sep 2003 16:38:16 +0000 Subject: [PATCH] Move the FIPS check so make depend doesn't give different results depending on FIPS mode. --- fips/dsa/fips_dsa_gen.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fips/dsa/fips_dsa_gen.c b/fips/dsa/fips_dsa_gen.c index 0cbfd9c0c9..34f389790f 100644 --- a/fips/dsa/fips_dsa_gen.c +++ b/fips/dsa/fips_dsa_gen.c @@ -69,20 +69,23 @@ #define HASH EVP_sha1() #endif -#ifndef OPENSSL_NO_SHA - -#ifdef FIPS - #include #include #include /*#include "cryptlib.h"*/ #include #include +#ifndef OPENSSL_NO_SHA #include +#endif +#ifndef OPENSSL_NO_RAND #include +#endif +#ifndef OPENSSL_NO_SHA #include +#ifdef FIPS + DSA *DSA_generate_parameters(int bits, unsigned char *seed_in, int seed_len, int *counter_ret, unsigned long *h_ret, -- 2.25.1