From: Richard Levitte Date: Wed, 12 May 2004 08:28:51 +0000 (+0000) Subject: Only really build this file when OPENSSL_FIPS is defined. And oh, X-Git-Tag: OpenSSL_0_9_7e~118 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=00a59641ee15267642c237dfbb90e9c375d23135;p=oweals%2Fopenssl.git Only really build this file when OPENSSL_FIPS is defined. And oh, let's keep internal variables static. --- diff --git a/fips/rand/fips_rand.c b/fips/rand/fips_rand.c index 6348c95e53..e1557edd90 100644 --- a/fips/rand/fips_rand.c +++ b/fips/rand/fips_rand.c @@ -70,6 +70,8 @@ #endif #include +#ifdef OPENSSL_FIPS + #define SEED_SIZE 8 static unsigned char seed[SEED_SIZE]; @@ -87,7 +89,7 @@ static void fips_rand_add(const void *buf, int num, double add_entropy); static int fips_rand_bytes(unsigned char *buf, int num); static int fips_rand_status(void); -RAND_METHOD rand_fips_meth= +static RAND_METHOD rand_fips_meth= { FIPS_rand_seed, fips_rand_bytes, @@ -284,3 +286,5 @@ static int fips_rand_status(void) { return n_seed == sizeof seed; } + +#endif /* OPENSSL_FIPS */