From 00a59641ee15267642c237dfbb90e9c375d23135 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 12 May 2004 08:28:51 +0000 Subject: [PATCH] Only really build this file when OPENSSL_FIPS is defined. And oh, let's keep internal variables static. --- fips/rand/fips_rand.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.25.1