diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-11-02 00:07:15 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-11-02 00:07:15 +0000 |
commit | d5939062d7fa9059b086e88ca14bf3f3ad19256b (patch) | |
tree | cbed3a773d60edff66f6629cf8fea4265ab56614 | |
parent | 8b8096d082292211cc977af195e9b12c88c26de3 (diff) |
Replace exit calls with return in fips_test_suite
-rw-r--r-- | fips/fips_test_suite.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fips/fips_test_suite.c b/fips/fips_test_suite.c index 20e9094068..1344b1108d 100644 --- a/fips/fips_test_suite.c +++ b/fips/fips_test_suite.c @@ -1092,16 +1092,16 @@ int main(int argc, char **argv) pass = ""; } else { printf("Bad argument \"%s\"\n", argv[1]); - exit(1); + return 1; } if (!no_exit) { fips_algtest_init_nofips(); if (!FIPS_module_mode_set(1, pass)) { printf("Power-up self test failed\n"); - exit(1); + return 1; } printf("Power-up self test successful\n"); - exit(0); + return 0; } } @@ -1120,7 +1120,7 @@ int main(int argc, char **argv) ERR_clear_error(); test_msg("2. Automatic power-up self test", FIPS_module_mode_set(1, pass)); if (!FIPS_module_mode()) - exit(1); + return 1; if (do_drbg_stick) FIPS_drbg_stick(); if (do_rng_stick) |