diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/src/apps/openssl.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/libssl/src/apps/openssl.c b/src/lib/libssl/src/apps/openssl.c index 9a7766cd33..5778191cb1 100644 --- a/src/lib/libssl/src/apps/openssl.c +++ b/src/lib/libssl/src/apps/openssl.c | |||
| @@ -236,18 +236,7 @@ main(int argc, char **argv) | |||
| 236 | { | 236 | { |
| 237 | CRYPTO_set_locking_callback(lock_dbg_cb); | 237 | CRYPTO_set_locking_callback(lock_dbg_cb); |
| 238 | } | 238 | } |
| 239 | if (getenv("OPENSSL_FIPS")) { | 239 | |
| 240 | #ifdef OPENSSL_FIPS | ||
| 241 | if (!FIPS_mode_set(1)) { | ||
| 242 | ERR_load_crypto_strings(); | ||
| 243 | ERR_print_errors(BIO_new_fp(stderr, BIO_NOCLOSE)); | ||
| 244 | exit(1); | ||
| 245 | } | ||
| 246 | #else | ||
| 247 | fprintf(stderr, "FIPS mode not supported.\n"); | ||
| 248 | exit(1); | ||
| 249 | #endif | ||
| 250 | } | ||
| 251 | apps_startup(); | 240 | apps_startup(); |
| 252 | 241 | ||
| 253 | /* Lets load up our environment a little */ | 242 | /* Lets load up our environment a little */ |
