diff options
Diffstat (limited to 'src/lib/libcrypto/rand/md_rand.c')
| -rw-r--r-- | src/lib/libcrypto/rand/md_rand.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/libcrypto/rand/md_rand.c b/src/lib/libcrypto/rand/md_rand.c index 0f8dd3e00f..9783d0c23e 100644 --- a/src/lib/libcrypto/rand/md_rand.c +++ b/src/lib/libcrypto/rand/md_rand.c | |||
| @@ -126,10 +126,6 @@ | |||
| 126 | 126 | ||
| 127 | #include <openssl/crypto.h> | 127 | #include <openssl/crypto.h> |
| 128 | #include <openssl/err.h> | 128 | #include <openssl/err.h> |
| 129 | #ifdef OPENSSL_FIPS | ||
| 130 | #include <openssl/fips.h> | ||
| 131 | #endif | ||
| 132 | |||
| 133 | 129 | ||
| 134 | #ifdef BN_DEBUG | 130 | #ifdef BN_DEBUG |
| 135 | # define PREDICT | 131 | # define PREDICT |
| @@ -336,14 +332,6 @@ static int ssleay_rand_bytes(unsigned char *buf, int num) | |||
| 336 | #endif | 332 | #endif |
| 337 | int do_stir_pool = 0; | 333 | int do_stir_pool = 0; |
| 338 | 334 | ||
| 339 | #ifdef OPENSSL_FIPS | ||
| 340 | if(FIPS_mode()) | ||
| 341 | { | ||
| 342 | FIPSerr(FIPS_F_SSLEAY_RAND_BYTES,FIPS_R_NON_FIPS_METHOD); | ||
| 343 | return 0; | ||
| 344 | } | ||
| 345 | #endif | ||
| 346 | |||
| 347 | #ifdef PREDICT | 335 | #ifdef PREDICT |
| 348 | if (rand_predictable) | 336 | if (rand_predictable) |
| 349 | { | 337 | { |
